Displaying Information About Files on a File System
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
Command
dir [/all]
[filesystem:filename]
show file systems
show file information
file-url
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
608402
608403
608410
608411
624625
640849
608412
608413
608417
608439
608419
616514
608442
608448
616516
616517
608440
624626
System Management Configuration Guide, Cisco IOS XE Fuji 16.8.x (Catalyst 9500 Switches)
242
Description
Displays a list of files on a file system.
Displays more information about each of the files on a file system.
Displays information about a specific file.
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.
drwx
4096
Jul 15 2015 07:11:35 +00:00
-rw-
33818
Sep 25 2015 11:41:35 +00:00
drwx
4096
Feb 27 2017 13:56:47 +00:00
-rw-
0
drwx
20480
Sep 23 2015 11:50:13 +00:00
drwx
4096
Sep 23 2015 12:29:27 +00:00
drwx
4096
Feb 27 2017 13:57:30 +00:00
drwx
4096
Jun 17 2015 18:12:47 +00:00
-rw-
33554432
Sep 25 2015 11:43:15 +00:00
-rw-
35
Sep 25 2015 20:17:42 +00:00
-rw-
214054
Sep 25 2015 20:17:48 +00:00
drwx
4096
Jul 23 2015 07:50:25 +00:00
drwx
4096
Mar 18 2015 11:09:04 +00:00
-rw-
556
Mar 18 2015 11:19:34 +00:00
-rw-
1131779
Mar 28 2015 13:13:48 +00:00
drwx
4096
drwx
4096
-rw-
252
Sep 25 2015 11:41:52 +00:00
drwx
4096
Apr 17 2015 06:10:55 +00:00
Jun 5 2015 10:16:17 +00:00
Apr 1 2015 09:34:56 +00:00
Apr 6 2015 09:42:38 +00:00
Working with the Flash File System
.installer
bootloader_evt_handle.log
.ssh
dc_stats.txt
core
.prst_sync
.rollback_timer
orch_test_logs
nvram_config
pnp-tech-time
pnp-tech-discovery-summary
util
onep
vlan.dat
log.txt
gs_script
tools
boothelper.log
SD_AVC_AUTO_CONFIG