Page 102 7210 SAS D, E, K OS Basic System Configuration Guide
File Commands
dir
Syntax dir [file-url] [sort-order {d | n | s}] [reverse]
Context file
Description This command displays a list of files and subdirectories in a directory.
Parameters file-url — The path or directory name.
<local-url>|<remote-url> - [255 chars max]
local-url - [<cflash-id>/ |<usb-flash-id>/][<file-path>]
remote-url - [ftp://<login>:<pswd>@<remote-locn>/]
[<file-path>]
remote-locn - [ <hostname> | <ipv4-address> |
"["<ipv6-address>"]" ]
ipv4-address - a.b.c.d
ipv6-address - x:x:x:x:x:x:x:x[-interface]
x:x:x:x:x:x:d.d.d.d[-interface]
x - [0..FFFF]H
d - [0..255]D
interface - 32 chars max, for link
local addresses
cflash-id or usb-flash-id -
cf1: - 7210 SAS-D
cf1: | uf1: - 7210 SAS-E
cf1: | uf1: - 7210 SAS-K
Values Use the file-url with the optional wildcard (*) to reduce the number of files to list.
sort-order { d | n | s } — Specifies the sort order.
Values d — date
n — name
s — size
reverse — Specifies to reverse the sort order.
Default Lists all files in the present working directory
file
Syntax file
Context root
Description The context to enter and perform file system operations. When entering the file context, the prompt
changes to reflect the present working directory. Navigating the file system with the cd .. command
results in a changed prompt.