Page 106 7210 SAS M, T, X, R6 Basic System Configuration Guide
File Commands
File Commands
attrib
Syntax attrib [+r | -r] file-url
attrib
Context file
Description This command sets or clears/resets the read-only attribute for a file in the local file system. To list all
files and their current attributes enter attrib or attrib x where x is either the filename or a wildcard
(*).
When an attrib command is entered to list a specific file or all files in a directory, the file’s attributes
are displayed with or without an “R” preceding the filename. The “R” implies that the +r is set and
that the file is read-only. Files without the “R” designation implies that the -r is set and that the file is
read-write-all. For example:
ALA-1>file cf1:\ # attrib
cf1:\bootlog.txt
cf1:\bof.cfg
cf1:\boot.ldr
cf1:\sr1.cfg
cf1:\test
cf1:\bootlog_prev.txt
R cf1:\BOF.SAV
Parameters file-url — The URL for the local file.
Values <local-url>|<remote-url> - [255 chars max]
local-url - [<cflash-id>/]|<usb-flash-id>/][<file-path>]
remote-url - [{ftp://|tftp://}<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 - cf1:, cf2:\ (only on 7210 SAS-T)
usb-flash-id - uf1:
+r — Sets the read-only attribute on the specified file.
-r — Clears/resets the read-only attribute on the specified file.