Sitenotice: 11/29/2018: The wiki is back. It turns out, some anti-virus product on my web server had an issue with the latest version of PHP. My server techs have resolved this issue, and things should be working again. During the investigation, I did restore to a backup from September. There is a chance that any changes done since then were lost, but I do not recall any edits. --OS-9 Al

8/30/2016: Massive re-work is being done on the InfoBox Templates. Read that page to keep up with the plan for that, and adding better keyword tags (categories) to all the pages. --OS-9 Al (talk) 15:28, 31 August 2016 (CDT)


From CoCopedia - The Tandy/Radio Shack Color Computer Wiki
Jump to: navigation, search

Used to examine or change the permissions of files.

Syntax: ATTR filename [<options>] [<permissions>]

Options  :

 -perm = turn off specified permission
  perm = turn on specified permission
 -a = inhibit printing of attrs after change     

Permissions :

 d - directory file
 s - non-sharable file
 r - read permit to owner
 w - write permit to owner
 e - execute permit to owner
 pr - read permit to public
 pw - write permit to public
 pe - execute permit to public

A file with the d permission turned on becomes a directory. A directory with the d permission turned off becomes a regular file - DON'T do it unless the directory is empty!!

To delete a directory, the d permission must be turned off. The DELDIR command does this automatically.

A non-shareable file ( s permission) can not be opened by more than one user or program at the same time. Can be used to prevent different users from modifying the file at the same time.


  attr CMDS

Shows the permissions of the CMDS directory.

Results in d-ewrewr

  attr myscript e pe -pw

Turns on the execution permissions for the owner of the file and the public, and turns off the write permission for the public. After this, the file can be executed by anyone, but can be edited only by the owner.

Equivalent / similar commands in other OSs