Overview:
A basic set of commands can be used to manipulate files on your routing device using the Cisco IOS File System (IFS)
Study Notes:
copy
To copy files between directories (flash, slot0) or external servers (TFTP, FTP)
Router#copy run start Router#copy flash: tftp:
delete
To delete a file from a Flash memory device or NVRAM
Router#delete flash:
dir
To display a list of files on a file system
Router#dir flash: Router#dir /all flash:
erase
To erase all files in a file system. The files are unrecoverable once erased.
Router#erase flash:
erase bootflash
Erases the bootflash: file system
Router#erase bootflash Router#erase bootflash:
file prompt
To specify the level of prompting
Router#file prompt alert Router#file prompt noisy Router#file prompt quiet
format
To format a file system
Router#format flash:
fsck
To check a file system for damage and repair any problems
Router#fsck flash:
mkdir
To create a new directory
Router#mkdir newdir
more
To display a file
Router#more flash:startup-config
rename
To rename a file system
Router#rename flash:vlan.dat flash:vlan.dat.backup
rmdir
To remove an existing directory
Router#rmdir flash:mydir
show file descriptors
To display a list of open file descriptors
Router#show file descriptors
show file information
To display information about a file
Router#show file information flash:startup-config
show file systems
To list available file systems
Router#show file systems
squeeze
To permanently erase files tagged as "deleted" or "error"
Router#squeeze flash:
undelete
To recover a file marked "deleted". Run the dir /all command first to get the index number of the files
Router#undelete <index-number> flash:
write
Deprecated across the board
Router#write erase --replaced by-- Router#erase nvram: Router#write memory --replaced by-- Router#copy run start Router#write terminal --replaced by-- Router#more system:running-config