C613-50105-01 REV C Command Reference for x210 Series 83
AlliedWare Plus™ Operating System - Version 5.4.6-1.x
FILE AND CONFIGURATION MANAGEMENT COMMANDS
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]
Mode Privileged Exec
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
To list all the files in the root of the Flash filesystem, use the command:
awplus# dir all flash:
To list recursively the files in the Flash filesystem, use the command:
awplus# dir recursive flash:
To list the files in alphabetical order, use the command:
awplus# dir sort name
To list the files by size, smallest to largest, use the command:
awplus# dir sort reverse size
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