38 Cisco LAN Switching Configuration Handbook
View the information about a local or remote file:
5.
(privileged) show file information filesystem:path
This command enables you to view information about a file on a remote or local file
system. The output displays the image type and size.
View the contents of a local or remote file:
6.
(privileged) more [/ascii | /binary | /ebcdic] filesystem:path
Use this command to view the contents of a remote or local file. The options ascii,
binary, and ebcdic enable you to specify the type of format in which you want to
have the file presented. If you specify dump, it shows the file in binary format. The
filesystem:path options enable you to specify a particular file on a valid file system.
For example, more /ascii flash:myconfig.txt displays the file myconfig.txt in ASCII
format located in the current Flash device.
Deleting Files from Flash
Cisco switch platforms have three different classifications of file systems. Each of these
file systems deals differently with deleting and permanently removing files from the Flash
file system. Table 3-2 shows the three types of file systems and the platforms that use
these file systems.
Table 3-2 Switch File System Types
File System Type
Class A
Class B
Class C
Delete a file from Flash memory:
1.
(privileged) delete [filesystem:]filename
This command deletes a file from Flash on any of the three classifications of file sys-
tems. For Class A and B file systems, the file is marked as deleted and shows up only
if the command dir /all is used. You can restore files that are marked as deleted by
using the undelete command. For Class C file systems, the delete command perma-
nently removes the file from the system. The file system must be a Flash file system.
Restore a deleted file:
2.
(privileged) undelete index [filesystem:]
For a Class A file system, if a file has been deleted, you can restore the file by using
the undelete command. You must provide the index number of the file listed by
using the dir /all command. If the file is not located in your working directory, deter-
mined by the pwd command, you can specify the filesystem: option.
Platforms
Catalyst 6500, 4500, 4848, 4900M
Catalyst 3560-E, 3750-E
Catalyst 2940, 2960