Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual
Page 167
File Management Commands
Software Reference for x310 Series Switches
C613-50046-01 REV A
AlliedWare Plus
TM
Operating System - Version 5.4.4C
7.21
dir
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]] [<url>|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. Refer to the
Examples
To list the files in the current working directory, use the command:
To list the non-hidden files in the root of the Flash filesystem, use the command:
To list all the files in the root of the Flash filesystem, use the command:
To list recursively the files in the Flash filesystem, use the command:
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).
<url>
URL 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
awplus#
dir
awplus#
dir flash
awplus#
dir all flash:
awplus#
dir recursive flash: