C i s c o C o n f i d e n t i a l - B e t a R e v i e w R 3 . 7. 1
File System Commands on Cisco IOS XR Software
dir
SMR-231
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
dir
To display a list of files on a file system or in a specific directory, use the
dir
command in EXEC or
administration EXEC mode.
dir
[
/all
|
/ena
|
/recurse
] [
filesystem
:
] [
filename
] {
location
node-id
|
location
all
}
Syntax Description
Defaults
When the
dir
command is entered without keywords or arguments, the contents of the present working
directory are displayed.
Command Modes
EXEC
Administration EXEC
Command History
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper
task IDs.
If you enter the
dir
command without specifying a directory, the contents of the present working
directory are displayed. The
all
keyword displays all files, including deleted files. The size associated
with the directory name is the total size for all files in that directory.
Task ID
/all
(Optional) Lists deleted files, undeleted files, and files with errors.
/
ena
(Optional) Recognizes subdirectories.
/recurse
(Optional) Recursively lists subdirectories.
filesystem
:
(Optional) Name of the directory containing the files to be displayed.
Include the file system alias for the
filesystem
argument, followed by a
colon, and, optionally, the name of a directory.
filename
(Optional) Name of the files to display. The files can be of any type. You
can use wildcards in the filename. A wildcard character (*) matches all
patterns. Strings following a wildcard are ignored.
location
node-id
Displays a lists of files from a directory on the designated node. The
node-id
argument is expressed in the
rack/slot/module
notation.
location
all
Displays a lists of files from a directory on all nodes.
Releases
Modifications
Release 3.7.1
This command was introduced on the Cisco ASR 14000 Series Router.
Task ID
Operations
filesystem
execute