7210 SAS M, X Basic System Configuration Guide Page 85
Configuration Commands
Configuration 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/][file-path]
remote-url [ftp://login:pswd@remote-locn/][file-path]
cf1:,cf1-A:
+r — Sets the read-only attribute on the specified file.
-r — Clears/resets the read-only attribute on the specified file.
cd
Syntax cd [file-url]
Context file
Description This command displays or changes the current working directory in the local file system.