dir - Get a directory listing of whatever path your are in.
Switch#dir Directory of flash:/ 3 -rwx 3533 Mar 1 1993 15:28:44 +00:00 config.text 12 drwx 192 Jan 2 2011 13:42:04 +00:00 c3550-ipbase-mz.122-44.SE1 7 -rwx 15 Jan 2 2011 13:42:09 +00:00 env_vars 9 -rwx 354 Jan 2 2011 13:42:09 +00:00 system_env_vars 10 -rwx 616 Mar 1 1993 02:29:03 +00:00 vlan.dat 11 -rwx 47 Mar 1 1993 10:55:38 +00:00 dhcpsnooping.db 332 -rwx 1938 Mar 1 1993 15:28:44 +00:00 private-config.text 15998976 bytes total (4493312 bytes free)
pwd - short for print working directory, just like in Linux, it shows you where you are located (typically flash:/ by default)
Switch#pwd flash:
mkdir - make a directory
Switch#mkdir flash:/tekcert Create directory filename [tekcert]? Created dir flash:/tekcert
cd - change directory, works just like in Linux, change to a directory.
Switch#cd tekcert Switch#pwd flash:/tekcert/
delete - delete a file (not a directory)
Switch#delete old-config.txt Delete filename [old-config.txt]? Delete flash:/old-config.txt? [confirm]
rm - remove a directory
Switch#rm flash:/test Remove directory filename [test]? Delete flash:/test? [confirm] Removed dir flash:/test
"pipe" | - You can use the pipe character to perform additional tasks on the output of a preceding command. Here are all of the pipe options:
Switch#show ver | ? append Append redirected output to URL (URLs supporting append operation only) begin Begin with the line that matches exclude Exclude lines that match include Include lines that match redirect Redirect output to URL tee Copy output to URL
For example, to create a text file with the output of the show version command, use pipe and redirect:
Switch#show ver | redirect flash:/show_ver.txt
more - output the contents of a file to the screen.
Switch#more show_ver.txt (output omitted)
copy - copy a file from one location to another. Everyone should know copy running-config startup-config. Without creating an alias, this is how you backup a config on the Nexus platform since Cisco has deprecated the write command.
Switch#copy show_ver.txt flash:/tekcert Destination filename [/tekcert/show_ver.txt]? Copy in progress...C 2176 bytes copied in 0.044 secs (49455 bytes/sec)