from related commands. For example, for all privileged EXEC commands that have the optional
filesystem:
argument, the system uses the file system specified by the
cd
command.
By default, the default file system is
flash:
.
You can display the current default file system as specified by the
cd
command by using the
pwd
privileged
EXEC command.
Displaying Information About Files on a File System
You can view a list of the contents of a file system before manipulating its contents. For example, before
copying a new configuration file to flash memory, you might want to verify that the file system does not
already contain a configuration file with the same name. Similarly, before copying a flash configuration file
to another location, you might want to verify its filename for use in another command. To display information
about files on a file system, use one of the privileged EXEC commands listed in the following table.
Table 17: Commands for Displaying Information About Files
Description
Command
Displays a list of files on a file system.
dir [/all]
[filesystem:filename]
Displays more information about each of the files on a file system.
show file systems
Displays information about a specific file.
show file information
file-url
Displays a list of open file descriptors. File descriptors are the internal
representations of open files. You can use this command to see if another user
has a file open.
show file descriptors
For example, to display a list of all files in a file system, use the
dir
privileged EXEC command:
Device#
dir flash:
DDirectory of bootflash:/
616513
drwx
4096
Jul 15 2015 07:11:35 +00:00
.installer
608402
-rw-
33818
Sep 25 2015 11:41:35 +00:00
bootloader_evt_handle.log
608403
drwx
4096
Feb 27 2017 13:56:47 +00:00
.ssh
608410
-rw-
0
Jun 5 2015 10:16:17 +00:00
dc_stats.txt
608411
drwx
20480
Sep 23 2015 11:50:13 +00:00
core
624625
drwx
4096
Sep 23 2015 12:29:27 +00:00
.prst_sync
640849
drwx
4096
Feb 27 2017 13:57:30 +00:00
.rollback_timer
608412
drwx
4096
Jun 17 2015 18:12:47 +00:00
orch_test_logs
608413
-rw-
33554432
Sep 25 2015 11:43:15 +00:00
nvram_config
608417
-rw-
35
Sep 25 2015 20:17:42 +00:00
pnp-tech-time
608439
-rw-
214054
Sep 25 2015 20:17:48 +00:00
pnp-tech-discovery-summary
608419
drwx
4096
Jul 23 2015 07:50:25 +00:00
util
616514
drwx
4096
Mar 18 2015 11:09:04 +00:00
onep
608442
-rw-
556
Mar 18 2015 11:19:34 +00:00
vlan.dat
608448
-rw-
1131779
Mar 28 2015 13:13:48 +00:00
log.txt
616516
drwx
4096
Apr 1 2015 09:34:56 +00:00
gs_script
616517
drwx
4096
Apr 6 2015 09:42:38 +00:00
tools
608440
-rw-
252
Sep 25 2015 11:41:52 +00:00
boothelper.log
624626
drwx
4096
Apr 17 2015 06:10:55 +00:00
SD_AVC_AUTO_CONFIG
System Management Configuration Guide, Cisco IOS XE Fuji 16.8.x (Catalyst 9500 Switches)
242
Working with the Flash File System
Displaying Information About Files on a File System