{
	"id": "6ab8c14a-368b-4782-9f63-8c3057040b3a",
	"created_at": "2026-04-06T01:30:15.383029Z",
	"updated_at": "2026-04-10T03:19:57.81391Z",
	"deleted_at": null,
	"sha1_hash": "29662c0f05ce68531617973adefd8fe1789c7cd2",
	"title": "Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide, Release 7.x - Using the Device File Systems, Directories, and Files [Cisco Nexus 9000 Series Switches]",
	"llm_title": "",
	"authors": "",
	"file_creation_date": "0001-01-01T00:00:00Z",
	"file_modification_date": "0001-01-01T00:00:00Z",
	"file_size": 167768,
	"plain_text": "Cisco Nexus 9000 Series NX-OS Fundamentals Configuration\r\nGuide, Release 7.x - Using the Device File Systems, Directories, and\r\nFiles [Cisco Nexus 9000 Series Switches]\r\nPublished: 2025-05-14 · Archived: 2026-04-06 01:18:17 UTC\r\nUsing the Device File Systems, Directories, and Files\r\nThis chapter contains the following sections:\r\nAbout the Device File Systems, Directories, and Files\r\nThis section describes file systems, directories, and files on the Cisco NX-OS device.\r\nFile Systems\r\nThe syntax for specifying a local file system is filesystem:[//modules/] .\r\nThis table describes file systems that you can reference on your device.\r\nTable 1. File System Syntax Components\r\nFile System\r\nName\r\nModule Description\r\nbootflash\r\nsup-active\r\nsup-local\r\nInternal CompactFlash memory located on the active supervisor module used\r\nfor storing image files, configuration files, and other miscellaneous files. The\r\ninitial default directory is bootflash.\r\nsup-standby\r\nsup-remote\r\nInternal CompactFlash memory located on the standby supervisor module used\r\nfor storing image files, configuration files, and other miscellaneous files.\r\nvolatile —\r\nVolatile random-access memory (VRAM) located on a supervisor module used\r\nfor temporary or pending changes.\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 1 of 23\n\nFile System\r\nName\r\nModule Description\r\nlog — Memory on the active supervisor that stores logging file statistics.\r\nsystem — Memory on a supervisor module used for storing the running-configuration file.\r\ndebug — Memory on a supervisor module used for debug logs.\r\nDirectories\r\nYou can create directories on bootflash: and external flash memory (usb1: and usb2:). You can navigate through\r\nthese directories and use them for files.\r\nFiles\r\nYou create and access files on bootflash:, volatile:, usb1:, and usb2: filesystems. You can only access files on the\r\nsystem: filesystem. You can use the log: filesystem for debug log files.\r\nYou can download files, such as the nx-os image file, from remote servers using FTP, Secure Copy (SCP), Secure\r\nShell FTP (SFTP), and TFTP. You can also copy files from an external server to the device, because the device can\r\nact as an SCP server.\r\nDefault Settings for File System Parameters\r\nThis table lists the default settings for the file system parameters.\r\nTable 2. Default File System Settings\r\nParameters Default\r\nDefault filesystem bootflash:\r\nConfiguring the FTP, HTTP, or TFTP Source Interface\r\nYou can configure the source interface for the File Transfer Protocol (FTP), Hypertext Transfer Protocol (HTTP),\r\nor Trivial File Transfer Protocol (TFTP). This configuration allows you to use the IP address associated with the\r\nconfigured source interface when copy packets are transferred.\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 2 of 23\n\nProcedure\r\n  Command or Action Purpose\r\nStep 1\r\nconfigure terminal\r\nExample:\r\nswitch# configure terminal\r\nswitch(config)#\r\nEnters global configuration\r\nmode.\r\nStep 2\r\n[no] ip {ftp | http | tftp} source-interface {ethernet slot/port |\r\nloopback number}\r\nExample:\r\nswitch(config)# ip tftp source-interface ethernet 2/1\r\nConfigures the source\r\ninterface for all FTP, HTTP, or\r\nTFTP packets.\r\nStep 3\r\n(Optional) copy running-config startup-config\r\nExample:\r\nswitch(config)# copy running-config startup-config\r\n(Optional)\r\nCopies the running\r\nconfiguration to the startup\r\nconfiguration.\r\nWorking with Directories\r\nThis section describes how to work with directories on the Cisco NX-OS device.\r\nIdentifying the Current Directory\r\nYou can display the directory name of your current directory.\r\nProcedure\r\nCommand or Action Purpose\r\npwd\r\nExample:\r\nDisplays the name of your current directory.\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 3 of 23\n\nCommand or Action Purpose\r\nswitch# pwd\r\nChanging the Current Directory\r\nYou can change the current directory for file system operations. The initial default directory is bootflash:.\r\nProcedure\r\n  Command or Action Purpose\r\nStep 1\r\n(Optional) pwd\r\nExample:\r\nswitch# pwd\r\n(Optional)\r\nDisplays the name of your current default directory.\r\nStep 2\r\ncd {directory | filesystem:[//module/]\r\n[directory]}\r\nExample:\r\nswitch# cd usb1:\r\nChanges to a new current directory. The file system,\r\nmodule, and directory names are case sensitive.\r\nCreating a Directory\r\nYou can create directories in the bootflash: and flash device file systems.\r\nProcedure\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 4 of 23\n\nCommand or Action Purpose\r\nStep 1\r\n(Optional) pwd\r\nExample:\r\nswitch# pwd\r\n(Optional)\r\nDisplays the name of your current default directory.\r\nStep 2\r\n(Optional) cd {directory |\r\nfilesystem:[//module/][directory]}\r\nExample:\r\nswitch# cd slot0:\r\n(Optional)\r\nChanges to a new current directory. The file system, module,\r\nand directory names are case sensitive.\r\nStep 3\r\nmkdir [filesystem:\r\n[//module/]]directory\r\nExample:\r\nswitch# mkdir test\r\nCreates a new directory. The filesystem argument is case\r\nsensitive. The directory argument is alphanumeric, case\r\nsensitive, and has a maximum of 64 characters.\r\nDisplaying Directory Contents\r\nYou can display the contents of a directory.\r\nProcedure\r\nCommand or Action Purpose\r\ndir [directory | filesystem:[//module/]\r\n[directory]]\r\nExample:\r\nswitch# dir bootflash:test\r\nDisplays the directory contents. The default is the current working\r\ndirectory. The file system and directory names are case sensitive.\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 5 of 23\n\nDeleting a Directory\r\nYou can remove directories from the file systems on your device.\r\nBefore you begin\r\nEnsure that the directory is empty before you try to delete it.\r\nProcedure\r\n  Command or Action Purpose\r\nStep 1\r\n(Optional) pwd\r\nExample:\r\nswitch# pwd\r\n(Optional)\r\nDisplays the name of your current default directory.\r\nStep 2\r\n(Optional) dir [filesystem :[//module/]\r\n[directory]]\r\nExample:\r\nswitch# dir bootflash:test\r\n(Optional)\r\nDisplays the contents of the current directory. The file\r\nsystem, module, and directory names are case sensitive.\r\nIf the directory is not empty, you must delete all the\r\nfiles before you can delete the directory.\r\nStep 3\r\nrmdir [filesystem :[//module/]]directory\r\nExample:\r\nswitch# rmdir test\r\nDeletes a directory. The file system and directory name\r\nare case sensitive.\r\nAccessing Directories on the Standby Supervisor Module\r\nYou can access all file systems on the standby supervisor module (remote) from a session on the active supervisor\r\nmodule. This feature is useful when copying files to the active supervisor modules requires similar files to exist on\r\nthe standby supervisor module. To access the file systems on the standby supervisor module from a session on the\r\nactive supervisor module, you specify the standby supervisor module in the path to the file using either\r\nfilesystem://sup-remote/ or filesystem://sup-standby/ .\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 6 of 23\n\nWorking with Files\r\nThis section describes how to work with files on the Cisco NX-OS device.\r\nMoving Files\r\nYou can move a file from one directory to another directory.\r\nCaution\r\nIf a file with the same name already exists in the destination directory, that file is overwritten by\r\nthe moved file.\r\nYou can use the move command to rename a file by moving the file within the same directory.\r\nProcedure\r\n  Command or Action Purpose\r\nStep 1\r\n(Optional) pwd\r\nExample:\r\nswitch# pwd\r\n(Optional)\r\nDisplays the name of your current\r\ndefault directory.\r\nStep 2\r\n(Optional) dir [filesystem:[//module/][directory]]\r\nExample:\r\nswitch# dir bootflash\r\n(Optional)\r\nDisplays the contents of the current\r\ndirectory. The file system and directory\r\nname are case sensitive.\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 7 of 23\n\nCommand or Action Purpose\r\nStep 3\r\nmove [filesystem:[//module/][directory /] |\r\ndirectory/]source-filename {{filesystem:[//module/]\r\n[directory /] | directory/}[target-filename] | target-filename}\r\nExample:\r\nswitch# move test old_tests/test1\r\nMoves a file.\r\nThe file system, module, and directory\r\nnames are case sensitive.\r\nThe target-filename argument is\r\nalphanumeric, case sensitive, and has a\r\nmaximum of 64 characters. If the target-filename argument is not specified, the\r\nfilename defaults to the source-filename\r\nargument value.\r\nCopying Files\r\nYou can make copies of files, either within the same directory or on another directory. For more information, see\r\nthe Cisco Nexus 9000 Series NX-OS Troubleshooting Guide.\r\nNote\r\nUse the dir command to ensure that enough space is available in the target file system. If enough\r\nspace is not available, use the delete command to remove unneeded files.\r\nProcedure\r\n  Command or Action Purpose\r\nStep 1\r\n(Optional) pwd\r\nExample:\r\nswitch# pwd\r\n(Optional)\r\nDisplays the name of your current default\r\ndirectory.\r\nStep 2\r\n(Optional) dir [filesystem:[//module/][directory]]\r\nExample:\r\nswitch# dir bootflash\r\n(Optional)\r\nDisplays the contents of the current directory.\r\nThe file system and directory name are case\r\nsensitive.\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 8 of 23\n\nCommand or Action Purpose\r\nStep 3\r\ncopy [filesystem:[//module/][directory/] |\r\ndirectory/]source-filename | {filesystem:\r\n[//module/][directory/] | directory/}[target-filename]\r\nExample:\r\nswitch# copy test old_tests/test1\r\nCopies a file. The file system, module, and\r\ndirectory names are case sensitive. The\r\nsource-filename argument is alphanumeric,\r\ncase sensitive, and has a maximum of 64\r\ncharacters. If the target-filename argument is\r\nnot specified, the filename defaults to the\r\nsource-filename argument value.\r\nDeleting Files\r\nYou can delete a file from a directory.\r\nProcedure\r\n  Command or Action Purpose\r\nStep 1\r\n(Optional) dir [filesystem:[//module/][directory]]\r\nExample:\r\nswitch# dir bootflash:\r\n(Optional)\r\nDisplays the contents of the current directory.\r\nThe file system and directory name are case\r\nsensitive.\r\nStep 2\r\ndelete {filesystem:[//module/][directory/] |\r\ndirectory/}filename\r\nExample:\r\nswitch# delete bootflash:old_config.cfg\r\nDeletes a file. The file system, module, and\r\ndirectory names are case sensitive. The source-filename argument is case sensitive.\r\nCaution\r\n \r\nIf you specify a directory, the\r\ndelete command deletes the\r\nentire directory and all its\r\ncontents.\r\nDisplaying File Contents\r\nYou can display the contents of a file.\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 9 of 23\n\nProcedure\r\nCommand or Action Purpose\r\nshow file [filesystem:[//module/]][directory/]filename\r\nExample:\r\nswitch# show file bootflash:test-results\r\nDisplays the file contents.\r\nDisplaying File Checksums\r\nYou can display checksums to check the file integrity.\r\nProcedure\r\nCommand or Action Purpose\r\nshow file [filesystem:[//module/]][directory/]filename {cksum |\r\nmd5sum}\r\nExample:\r\nswitch# show file bootflash:trunks2.cfg cksum\r\nDisplays the checksum or MD5\r\nchecksum of the file.\r\nCompressing and Uncompressing Files\r\nYou can compress and uncompress files on your device using Lempel-Ziv 1977 (LZ77) coding.\r\nProcedure\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 10 of 23\n\nCommand or Action Purpose\r\nStep 1\r\n(Optional) dir [filesystem:\r\n[//module/]directory]]\r\nExample:\r\nswitch# dir bootflash:\r\n(Optional)\r\nDisplays the contents of the current directory. The\r\nfile system and directory name are case sensitive.\r\nStep 2\r\ngzip [filesystem:[//module/][directory/] |\r\ndirectory/]filename\r\nExample:\r\nswitch# gzip show_tech\r\nCompresses a file. After the file is compressed, it\r\nhas a .gz suffix.\r\nStep 3\r\ngunzip [filesystem:[//module/][directory/] |\r\ndirectory/]filename .gz\r\nExample:\r\nswitch# gunzip show_tech.gz\r\nUncompresses a file. The file to uncompress must\r\nhave the .gz suffix. After the file is uncompressed, it\r\ndoes not have the .gz suffix.\r\nDisplaying the Last Lines in a File\r\nYou can display the last lines of a file.\r\nProcedure\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 11 of 23\n\nCommand or Action Purpose\r\ntail [filesystem:[//module/]]\r\n[directory/]filename [lines]\r\nExample:\r\nswitch# tail ospf-gr.conf\r\nDisplays the last lines of a file. The default number of lines is\r\n10. The range is from 0 to 80 lines.\r\nRedirecting show Command Output to a File\r\nYou can redirect show command output to a file on bootflash:, volatile:, or a remote server. You can also specify\r\nthe format for the command output.\r\nProcedure\r\n  Command or Action Purpose\r\nStep 1\r\n(Optional) terminal redirection-mode {ascii | zipped}\r\nExample:\r\nswitch# terminal redirection-mode zipped\r\n(Optional)\r\nSets the redirection mode for the\r\nshow command output for the user\r\nsession. The default mode is ascii .\r\nStep 2\r\nshow-command \u003e [filesystem:[//module/][directory] |\r\n[directory /]]filename\r\nExample:\r\nswitch# show tech-support \u003e bootflash:techinfo\r\nRedirects the output from a show\r\ncommand to a file.\r\nFinding Files\r\nYou can find the files in the current working directory and its subdirectories that have names that begin with a\r\nspecific character string.\r\nProcedure\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 12 of 23\n\nCommand or Action Purpose\r\nStep 1\r\n(Optional) pwd\r\nExample:\r\nswitch# pwd\r\n(Optional)\r\nDisplays the name of your current default\r\ndirectory.\r\nStep 2\r\n(Optional) cd {filesystem:[//module/]\r\n[directory] | directory}\r\nExample:\r\nswitch# cd bootflash:test_scripts\r\n(Optional)\r\nChanges the default directory.\r\nStep 3\r\nfind filename-prefix\r\nExample:\r\nswitch# find bgp_script\r\nFinds all filenames in the default directory and in\r\nits subdirectories beginning with the filename\r\nprefix. The filename prefix is case sensitive.\r\nFormatting the Bootflash\r\nUse the format bootflash: CLI command to format the onboard flash memory (bootflash:). If the command errors\r\nout due to the Deactivate all virtual-services and try again error message, destroy the Guest Shell\r\nusing the guestshell destroy CLI command and rerun the format bootflash: command, for example,\r\nswitch# sh virtual-service list\r\nVirtual Service List:\r\n \r\nName Status Package Name\r\n-----------------------------------------------------------------------\r\nguestshell+ Activated guestshell.ova\r\n \r\nswitch#\r\nswitch# guestshell destroy\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 13 of 23\n\nYou are about to destroy the guest shell and all of its contents. Be sure to save your work. Are you sure you w\r\nswitch# 2018 Jan 17 18:42:24 switch %$ VDC-1 %$ %VMAN-2-ACTIVATION_STATE: Deactivating virtual service 'guestshe\r\nswitch#format bootflash:\r\nWorking with Archive Files\r\nThe Cisco NX-OS software supports archive files. You can create an archive file, append files to an existing\r\narchive file, extract files from an archive file, and list the files in an archive file.\r\nCreating an Archive File\r\nYou can create an archive file and add files to it. You can specify the following compression types:\r\nbzip2\r\ngzip\r\nUncompressed\r\nThe default is gzip.\r\nProcedure\r\nCommand or Action Purpose\r\ntar create {bootflash: | volatile:}archive-filename [absolute] [bz2-compress] [gz-compress] [remove] [uncompressed] [verbose] filename-list\r\nExample:\r\nswitch# tar create bootflash:config-archive gz-compress bootflash:config-file\r\nCreates an archive file\r\nand adds files to it.\r\nThe filename is\r\nalphanumeric, not\r\ncase sensitive, and has\r\na maximum length of\r\n240 characters.\r\nThe absolute keyword\r\nspecifies that the\r\nleading backslash\r\ncharacters (\\) should\r\nnot be removed from\r\nthe names of the files\r\nadded to the archive\r\nfile. By default, the\r\nleading backslash\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 14 of 23\n\nCommand or Action Purpose\r\ncharacters are\r\nremoved.\r\nThe bz2-compress ,\r\ngz-compress , and\r\nuncompressed\r\nkeywords determine\r\nthe compression\r\nutility used when files\r\nare added, or later\r\nappended, to the\r\narchive and the\r\ndecompression utility\r\nto use when extracting\r\nthe files. If you do not\r\nspecify an extension\r\nfor the archive file,\r\nthe defaults are as\r\nfollows:\r\nFor bz2-\r\ncompress , the\r\nextension is\r\n.tar.bz2.\r\nFor gz-compress , the\r\nextension is\r\n.tar.gz.\r\nFor\r\nuncompressed\r\n, the extension\r\nis .tar.\r\nThe remove keyword\r\nspecifies that the\r\nCisco NX-OS\r\nsoftware should delete\r\nthe files from the file\r\nsystem after adding\r\nthem to the archive.\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 15 of 23\n\nCommand or Action Purpose\r\nBy default, the files\r\nare not deleted.\r\nThe verbose keyword\r\nspecifies that the\r\nCisco NX-OS\r\nsoftware should list\r\nthe files as they are\r\nadded to the archive.\r\nBy default, the files\r\nare listed as they are\r\nadded.\r\nAppending Files to an Archive File\r\nYou can append files to an existing archive file on your device.\r\nBefore you begin\r\nYou have created an archive file on your device.\r\nProcedure\r\nCommand or Action Purpose\r\ntar append {bootflash: |\r\nvolatile:}archive-filename [absolute]\r\n[remove] [verbose] filename-list\r\nAdds files to an existing archive file. The archive filename is not\r\ncase sensitive.\r\nThe absolute keyword specifies that the leading backslash\r\ncharacters (\\) should not be removed from the names of the files\r\nadded to the archive file. By default, the leading backslash\r\ncharacters are removed.\r\nThe remove keyword specifies that the Cisco NX-OS software\r\nshould delete the files from the filesystem after adding them to the\r\narchive. By default, the files are not deleted.\r\nThe verbose keyword specifies that the Cisco NX-OS software\r\nshould list the files as they are added to the archive. By default, the\r\nfiles are listed as they are added.\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 16 of 23\n\nExample\r\nThis example shows how to append a file to an existing archive file:\r\nswitch# tar append bootflash:config-archive.tar.gz bootflash:new-config\r\nExtracting Files from an Archive File\r\nYou can extract files to an existing archive file on your device.\r\nBefore you begin\r\nYou have created an archive file on your device.\r\nProcedure\r\nCommand or Action Purpose\r\ntar extract {bootflash: | volatile:}archive-filename [keep-old]\r\n[screen] [to {bootflash: | volatile:}[/directory-name]] [verbose]\r\nExample:\r\nswitch# tar extract bootflash:config-archive.tar.gz\r\nExtracts files from an existing archive\r\nfile. The archive filename is not case\r\nsensitive.\r\nThe keep-old keyword indicates that\r\nthe Cisco NX-OS software should not\r\noverwrite files with the same name as\r\nthe files being extracted.\r\nThe screen keyword indicates that the\r\nCisco NX-OS software should not\r\noverwrite files with the same name as\r\nthe files being extracted.\r\nThe to keyword specifies the target\r\nfilesystem. You can include a directory\r\nname. The directory name is\r\nalphanumeric, case sensitive, and has a\r\nmaximum length of 240 characters.\r\nThe verbose keyword specifies that the\r\nCisco NX-OS software should display\r\nthe names of the files as they are\r\nextracted.\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 17 of 23\n\nDisplaying the Filenames in an Archive File\r\nYou can display the names of the files in an archive files using the tar list command.\r\ntar list {bootflash: | volatile:}archive-filename\r\nThe archive filename is not case sensitive.\r\nswitch# tar list bootflash:config-archive.tar.gz\r\nconfig-file\r\nnew-config\r\nExamples of Using the File System\r\nThis section includes examples of how to use the file system on the Cisco NX-OS device.\r\nAccessing Directories on Standby Supervisor Modules\r\nThis example shows how to list the files on the standby supervisor module:\r\nswitch# dir bootflash://sup-remote\r\n 4096 Oct 03 23:55:55 2013 .patch/\r\n...\r\n 16384 Jan 01 13:23:30 2011 lost+found/\r\n 297054208 Oct 21 18:55:36 2013 n9000-dk9.6.1.2.I1.1.bin\r\n...\r\nUsage for bootflash://sup-remote\r\n1903616000 bytes used\r\n19234234368 bytes free\r\n21137850368 bytes total\r\nThis example shows how to delete a file on the standby supervisor module:\r\nswitch# delete bootflash://sup-remote/aOldConfig.txt\r\n \r\nMoving Files\r\nThis example shows how to move a file on an external flash device:\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 18 of 23\n\nswitch# move usb1:samplefile usb1:mystorage/samplefile\r\n \r\nThis example shows how to move a file in the default file system:\r\nswitch# move samplefile mystorage/samplefile\r\n \r\nCopying Files\r\nThis example shows how to copy the file called samplefile from the root directory of the usb1: file system to the\r\nmystorage directory:\r\nswitch# copy usb1:samplefile usb1:mystorage/samplefile\r\nThis example shows how to copy a file from the current directory level:\r\nswitch# copy samplefile mystorage/samplefile\r\nThis example shows how to copy a file from the active supervisor module bootflash to the standby supervisor\r\nmodule bootflash:\r\nswitch# copy bootflash:nx-os-image bootflash://sup-2/nx-os-image\r\n \r\nThis example shows how to overwrite the contents of an existing configuration in NVRAM:\r\nswitch# copy nvram:snapshot-config nvram:startup-config\r\n \r\nWarning: this command is going to overwrite your current startup-config:\r\nDo you wish to continue? {y/n} [y] y\r\n \r\nYou can also use the copy command to upload and download files from the bootflash: file system to or from a\r\nFTP, TFTP, SFTP, or SCP server.\r\nDeleting a Directory\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 19 of 23\n\nYou can remove directories from the file systems on your device.\r\nBefore you begin\r\nEnsure that the directory is empty before you try to delete it.\r\nProcedure\r\n  Command or Action Purpose\r\nStep 1\r\n(Optional) pwd\r\nExample:\r\nswitch# pwd\r\n(Optional)\r\nDisplays the name of your current default directory.\r\nStep 2\r\n(Optional) dir [filesystem :[//module/]\r\n[directory]]\r\nExample:\r\nswitch# dir bootflash:test\r\n(Optional)\r\nDisplays the contents of the current directory. The file\r\nsystem, module, and directory names are case sensitive.\r\nIf the directory is not empty, you must delete all the\r\nfiles before you can delete the directory.\r\nStep 3\r\nrmdir [filesystem :[//module/]]directory\r\nExample:\r\nswitch# rmdir test\r\nDeletes a directory. The file system and directory name\r\nare case sensitive.\r\nDisplaying File Contents\r\nThis example shows how to display the contents of a file on an external flash device:\r\nswitch# show file usb1:test\r\nconfigure terminal\r\ninterface ethernet 1/1\r\nno shutdown\r\nend\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 20 of 23\n\nshow interface ethernet 1/1\r\nThis example shows how to display the contents of a file that resides in the current directory:\r\nswitch# show file myfile\r\nDisplaying File Checksums\r\nThis example shows how to display the checksum of a file:\r\nswitch# show file bootflash:trunks2.cfg cksum\r\n583547619\r\nThis example shows how to display the MD5 checksum of a file:\r\nswitch# show file bootflash:trunks2.cfg md5sum\r\n3b94707198aabefcf46459de10c9281c\r\nCompressing and Uncompressing Files\r\nThis example shows how to compress a file:\r\nswitch# dir\r\n 1525859 Jul 04 00:51:03 2013 Samplefile\r\n...\r\nswitch# gzip volatile:Samplefile\r\nswitch# dir\r\n 266069 Jul 04 00:51:03 2013 Samplefile.gz\r\n...\r\nThis example shows how to uncompress a compressed file:\r\nswitch# dir\r\n 266069 Jul 04 00:51:03 2013 Samplefile.gz\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 21 of 23\n\n...\r\nswitch# gunzip samplefile\r\nswitch# dir\r\n 1525859 Jul 04 00:51:03 2013 Samplefile\r\n...\r\nRedirecting show Command Output\r\nThis example shows how to direct the output to a file on the bootflash: file system:\r\nswitch# show interface \u003e bootflash:switch1-intf.cfg\r\nThis example shows how to direct the output to a file on external flash memory:\r\nswitch# show interface \u003e usb1:switch-intf.cfg\r\nThis example shows how to direct the output to a file on a TFTP server:\r\nswitch# show interface \u003e tftp://10.10.1.1/home/configs/switch-intf.cfg\r\nPreparing to copy...done\r\nThis example shows how to direct the output of the show tech-support command to a file:\r\nswitch# show tech-support \u003e Samplefile\r\nBuilding Configuration ...\r\nswitch# dir\r\n 1525859 Jul 04 00:51:03 2013 Samplefile\r\nUsage for volatile://\r\n 1527808 bytes used\r\n 19443712 bytes free\r\n 20971520 bytes total\r\nFinding Files\r\nThis example shows how to find a file in the current default directory:\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 22 of 23\n\nswitch# find smm_shm.cfg\r\n/usr/bin/find: ./lost+found: Permission denied\r\n./smm_shm.cfg\r\n./newer-fs/isan/etc/routing-sw/smm_shm.cfg\r\n./newer-fs/isan/etc/smm_shm.cfg\r\nBack to Top\r\nSource: https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000\r\n_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_cha\r\npter_01000.html\r\nhttps://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html\r\nPage 23 of 23",
	"extraction_quality": 1,
	"language": "EN",
	"sources": [
		"MITRE"
	],
	"references": [
		"https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/fundamentals/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html"
	],
	"report_names": [
		"b_Cisco_Nexus_9000_Series_NX-OS_Fundamentals_Configuration_Guide_7x_chapter_01000.html"
	],
	"threat_actors": [],
	"ts_created_at": 1775439015,
	"ts_updated_at": 1775791197,
	"ts_creation_date": 0,
	"ts_modification_date": 0,
	"files": {
		"pdf": "https://archive.orkl.eu/29662c0f05ce68531617973adefd8fe1789c7cd2.pdf",
		"text": "https://archive.orkl.eu/29662c0f05ce68531617973adefd8fe1789c7cd2.txt",
		"img": "https://archive.orkl.eu/29662c0f05ce68531617973adefd8fe1789c7cd2.jpg"
	}
}