cc/td/doc/product/software/ios120/12supdoc/12cmdsum
hometocprevnextglossaryfeedbacksearchhelp

Table of Contents

Cisco IOS File System Commands

Cisco IOS File System Commands

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.

cd

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.


copy verify

The verify command replaces the copy verify command. Refer to the verify command.

copy verify flash

The verify command replaces the copy verify flash command. Refer to the verify command for further details.

delete

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.


dir

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.


erase

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.


erase startup-config

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.

file prompt

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.


format

To format a Class A or Class C Flash file system, use the format EXEC command.

format filesystem1: (Class C Flash file systems)
format [spare spare-number] filesystem1: [[filesystem2:][monlib-filename]] (Class A Flash file system)

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.


fsck

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.


kerberos srvtab remote

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.


mkdir

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.


more

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.


pwd

To show the current setting of the cd command, use the pwd EXEC command.

pwd

rename

To 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.


rmdir

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.


show configuration

The more nvram:startup-config command replaces the show configuration command. Refer to the more command in this chapter for further details.

show file descriptors

To display a list of open file descriptors, use the show file descriptors EXEC command.

show file descriptors

show file information

To 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.


show file systems

To list available file systems, use the show file systems EXEC command.

show file systems

show running-config

The more system:running-config command replaces the show running-config command. Refer to the more command in this chapter for further details.

show startup-config

The more nvram:startup-config command replaces the show startup-config command. Refer to the more command in this chapter for further details.

squeeze

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.


tftp-server

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]
no tftp-server {file-url | rom}

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.


tftp-server system

The tftp-server command replaces the tftp-server system command. Refer to the tftp-server command in this chapter for further details.

undelete

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.


verify

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.


write erase

The write erase command has been replaced by the erase nvram: command. Refer to the erase command in this chapter for further details.

write terminal

The more system:running-config command replaces the write terminal command. Refer to the more command in this chapter for further details.


hometocprevnextglossaryfeedbacksearchhelp
Posted: Mon Feb 8 13:53:10 PST 1999
Copyright 1989-1999©Cisco Systems Inc.