![Alied Telesis GS970M/10 Command Reference Manual Download Page 97](http://html1.mh-extra.com/html/alied-telesis/gs970m-10/gs970m-10_command-reference-manual_2896773097.webp)
C613-50163-01 Rev C
Command Reference for GS970M Series
97
AlliedWare Plus™ Operating System - Version 5.4.7-0.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
>|card|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
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.
card
SD (or SDHC) card root directory
debug
Debug root directory
flash
Flash memory root directory
nvs
NVS memory root directory