| MediaWiki:Sitenotice |
|---|
| 2026-03-12: Cocopedia.com is now using a new caching system that should make things faster. Please let me know if you encounter any new issues.
2026-03-15: MediaWiki has been reinstalled and the old database and files restored. It was pretty clogged up from being upgraded so many times since 2004. I am also testing out Cloudflare to see if it can prevent the 'bot assaults that took the site down last year. OS-9 Al (talk) 21:20, 15 March 2026 (EDT)) |
ATTR: Difference between revisions
Diego bf109 (talk | contribs) No edit summary |
Category |
||
| (3 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
Used to examine or change the permissions of files. | |||
Syntax: | '''Syntax:''' ATTR filename [<options>] [<permissions>] | ||
Options : | Options : | ||
| Line 42: | Line 41: | ||
*MS-DOS: [http://en.wikipedia.org/wiki/Attrib attrib] | *MS-DOS: [http://en.wikipedia.org/wiki/Attrib attrib] | ||
*Unix/Linux: [http://en.wikipedia.org/wiki/Chmod chmod] | *Unix/Linux: [http://en.wikipedia.org/wiki/Chmod chmod] | ||
[[Category:OS-9]] | |||
Latest revision as of 16:38, 10 September 2015
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.
Examples:
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