|
|
This chapter describes the function and displays the syntax for Cisco IOS File System (IFS) commands. For more information about defaults and usage guidelines, see the corresponding chapter of the Configuration Fundamentals Command Reference.
To change the default directory or file system, use the cd EXEC command.
cd [filesystem:]
filesystem: | (Optional) URL of the directory or file system followed by a colon. |
The verify command replaces the copy verify command. Refer to the verify command.
The verify command replaces the copy verify flash command. Refer to the verify command for further details.
To delete a file on a Flash memory device, use the delete EXEC command.
delete flash-url
flash-url | URL of the file to be deleted. |
To display a list of files on a file system, use the dir EXEC command.
dir [/all] [filesystem: | file-url]
/all | (Optional) Lists deleted files, undeleted files, and files with errors. |
filesystem: | (Optional) File system or directory containing the file(s) to list followed by a colon. |
file-url | (Optional) Name of the file(s) to display on a specified device. The files can be of any type. You can use wildcards in the filename. A wildcard character (*) matches all patterns. Strings after a wildcard are ignored. |
To erase a file system, use the erase EXEC command.The erase nvram: command replaces the write erase command and the erase startup-config command.
erase filesystem:
filesystem: | File system name followed by a colon. |
The erase nvram: command replaces the erase startup-config command and the write erase command. Refer to the erase command in this chapter for further details.
To specify the level of prompting, use the file prompt global configuration command.
file prompt {alert | noisy | quiet}
alert | Prompts only for destructive file operations. This is the default. |
noisy | Confirms all file operation parameters. |
quiet | Seldom prompts for file operations. |
To format a Class A or Class C Flash file system, use the format EXEC command.
format filesystem1: (Class C Flash file systems)
spare | (Optional) Reserves spare sectors as specified by the spare-number argument when formatting Flash memory. |
spare-number | (Optional) Number of the spare sectors to reserve on formatted Flash memory. Valid values are 0 to 16. The default value is zero. |
filesystem1: | Flash memory to format followed by a colon. |
filesystem2: | (Optional) File system containing the monlib file to use for formatting filesystem1 followed by a colon. |
monlib-filename | (Optional) Name of the ROM monitor library file (monlib file) to use for formatting filesystem1. The default monlib file is the one bundled with the system software. When used with HSA and you do not specify the monlib-filename, the system takes ROM monitor library file from the slave image bundle. If you specify the monlib-filename, the system assumes that the files reside on the slave devices. |
To check a Class C Flash file system for damage and repair any problems, use the fsck EXEC command.
fsck [/nocrc] filesystem:
/nocrc | (Optional) Skips CRC checks. |
filesystem: | File system to check. |
To retrieve a krb5 SRVTAB file from the specified host, use the kerberos srvtab remote global configuration command.
kerberos srvtab remote file-url
file-url | TFTP URL of the SRVTAB file on the specified host. |
To create a new directory in a Class C Flash file system, use the mkdir EXEC command.
mkdir directory
directory | Name of the directory to create. |
To display a file, use the more EXEC command.
more [/ascii | /binary | /ebcdic] file-url
/ascii | (Optional) Displays a binary file in ASCII format. |
/binary | (Optional) Displays a file in hex/text format. |
/ebcdic | (Optional) Displays a binary file in EBCDIC format. |
file-url | URL of the file to display. |
To show the current setting of the cd command, use the pwd EXEC command.
pwdTo rename a file in a Class C Flash file system, use the rename EXEC command.
rename url1 url2
url1 | Original path name. |
url2 | New path name. |
To remove an existing directory in a Class C Flash file system, use the rmdir EXEC command.
rmdir directory
directory | Name of the directory to remove. |
The more nvram:startup-config command replaces the show configuration command. Refer to the more command in this chapter for further details.
To display a list of open file descriptors, use the show file descriptors EXEC command.
show file descriptorsTo display information about a file, use the show file information EXEC command.
show file information file-url
file-url | URL of the file to display. |
To list available file systems, use the show file systems EXEC command.
show file systemsThe more system:running-config command replaces the show running-config command. Refer to the more command in this chapter for further details.
The more nvram:startup-config command replaces the show startup-config command. Refer to the more command in this chapter for further details.
To permanently delete Flash files by squeezing a Class A Flash file system, use the squeeze EXEC command.
squeeze filesystem:
filesystem: | Flash file system followed by a colon. |
To configure a router or a Flash memory device on the router as a TFTP server, use the tftp-server global configuration command. To remove a previously defined filename, use the no form of this command with the appropriate filename.
tftp-server {file-url | rom} [alias alt-filename] [access-list-number]
file-url | Location of the file that the TFTP server uses in answering TFTP read requests. |
rom | Specifies TFTP service of a file in ROM. |
alias | (Optional) Specifies an alternate name for the file that the TFTP server uses in answering TFTP read requests. |
alt-filename | (Optional) Alternate name of the file that the TFTP server uses in answering TFTP read requests. A client of the TFTP server can use this alternate name in its read requests. |
access-list-number | (Optional) Basic IP access list number. Valid values are 0 to 99. |
The tftp-server command replaces the tftp-server system command. Refer to the tftp-server command in this chapter for further details.
To recover a file marked "deleted" on a Class A or Class B Flash file system, use the undelete EXEC command.
undelete index [filesystem:]
index | Number that indexes the file in the dir command output. |
filesystem: | (Optional) File system containing the file to undelete. |
To verify the checksum of a file on a Flash memory file system, use the verify EXEC command.
verify file-url
file-url | URL of the file to verify. |
The write erase command has been replaced by the erase nvram: command. Refer to the erase command in this chapter for further details.
The more system:running-config command replaces the write terminal command. Refer to the more command in this chapter for further details.
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Mon Feb 8 13:53:10 PST 1999
Copyright 1989-1999©Cisco Systems Inc.