![Cisco 2948G - Catalyst Switch Скачать руководство пользователя страница 541](http://html.mh-extra.com/html/cisco/2948g-catalyst-switch/2948g-catalyst-switch_configuration-manual_67462541.webp)
34-3
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
—
Release 8.1
78-15486-01
Chapter 34 Working With the Flash File System
Working With the Flash File System on the Switch
This example shows how to list the files on the default Flash device:
Console> (enable) dir
-#- -length- -----date/time------ name
1 3846376 Jun 14 2000 14:13:10 cat4000-k4.6-1-0-104-ORL.bin
2 3761580 Jun 14 2000 14:16:05 cat4000.6-1-0-104-ORL.bin
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 41bdc 22 7004 Apr 01 1998 15:27:45 4003.config.
4.1.98.cfg
2 .D ffffffff ccce97a3 43644 23 6630 Apr 01 1998 15:36:47 4003.default
.config.cfg
3 .D ffffffff 81a027ca 45220 15 7004 Apr 19 1998 10:05:59 4003_config.cfg
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 hex dump of the file.
To display the contents of a file on a Flash device, perform this task in privileged mode:
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)
Display a list of all files on a Flash device, including
deleted files.
dir [[m/]device:][filename] all
Display a detailed list of files on a Flash device.
dir [[m/]device:][filename] long
Task
Command
Task
Command
Display the contents of a file on a Flash device.
show file [device:]filename [dump]