Chapter 34
Working With the Flash File System
Task
Display a list of all files on a Flash device, including
deleted files.
Display a detailed list of files on a Flash device.
This example shows how to list the files on the default Flash device:
Console> (enable) dir
-#- -length- -----date/time------ name
1
2
3795052 bytes available (7608212 bytes used)
Console> (enable)
This example shows how to list the deleted files on the default Flash device:
Console> (enable) dir deleted
-#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name
1 .D ffffffff 81a027ca
4.1.98.cfg
2 .D ffffffff ccce97a3
.config.cfg
3 .D ffffffff 81a027ca
1213952 bytes available (6388224 bytes used)
Console> (enable)
Displaying the Contents of a File on a Flash Device
In software release 5.2 and later releases, you can display the contents of a file on a Flash device
onscreen. Enter the dump keyword to display a hexadecimal dump of the file.
To display the contents of a file on a Flash device, perform this task in privileged mode:
Task
Display the contents of a file on a Flash device.
This example shows how to display the contents of a file in bootflash:
Console> (enable) show file bootflash:dns_config.cfg
begin
!
#dns
set ip dns server 172.16.10.70 primary
set ip dns server 172.16.10.140
set ip dns enable
set ip dns domain corp.com
end
Console> (enable)
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
78-15908-01
3846376 Jun 14 2000 14:13:10 cat4000-k4.6-1-0-104-ORL.bin
3761580 Jun 14 2000 14:16:05 cat4000.6-1-0-104-ORL.bin
41bdc
43644
45220
Working With the Flash File System on the Switch
Command
dir [[m/]device:][filename] all
dir [[m/]device:][filename] long
22
7004 Apr 01 1998 15:27:45 4003.config.
23
6630 Apr 01 1998 15:36:47 4003.default
15
7004 Apr 19 1998 10:05:59 4003_config.cfg
Command
show file [device:]filename [dump]
34-3