C613-50102-01 REV C
Command Reference for x510 Series
123
AlliedWare Plus™ Operating System - Version 5.4.6-1.x
F
ILE
AND
C
ONFIGURATION
M
ANAGEMENT
C
OMMANDS
DIR
dir
Overview
This command lists the files on a filesystem. If no directory or file is specified then
this command lists the files in the current working directory.
Syntax
dir [all] [recursive] [sort [reverse] [name|size|time]]
[<
filename
>|debug|flash|nvs|usb]
Mode
Privileged Exec
Usage
In a stacked environment you can use the CLI on a stack master to access
filesystems that are located on another stack member. The syntax is:
<
hostname
>-<
stack_ID
>/flash:[/][<
directory
>/]
<
stack_member_filename
>
For example, to specify a file in the “configs” directory on member 2 of a stack,
enter:
awplus-2/flash:/configs/example.cfg
Examples
To list the files in the current working directory, use the command:
awplus#
dir
To list the non-hidden files in the root of the Flash filesystem, use the command:
awplus#
dir flash
Parameter
Description
all
List all files.
recursive
List the contents of directories recursively.
sort
Sort directory listing.
reverse
Sort using reverse order.
name
Sort by name.
size
Sort by size.
time
Sort by modification time (default).
<
filename
>
The name of the directory or file. If no directory or file is
specified, then this command lists the files in the current
working directory.
debug
Debug root directory
flash
Flash memory root directory
nvs
NVS memory root directory
usb
USB storage device root directory