There is a high order bit that tells if a file is actually a directory: d rwx rwx rwx. In that case:
The odd-looking chmod 755 name.class command sets the permissions. The permissions are encoded in binary, 111 101 101, then in octal 755, one bit for each permission, 1=ok 0=not ok to do that. 755 means I give myself permission to do everything, but I don’t let others write, though I let them read and execute.
| CHMOD Octal Permission Codes | |
|---|---|
| Octal | Meaning |
| 0 | --- |
| 1 | --x |
| 2 | -w- |
| 3 | -wx |
| 4 | r-x |
| 6 | rw- |
| 7 | rwx |
| flag | Effect |
|---|---|
| +A | Set the archive attribute |
| -A | Clear the archive attribute |
| +H | Set the hidden attribute |
| -H | Clear the hidden attribute |
| +R | Set the read-only attribute |
| -R | Clear the read-only attribute |
| +S | Set the system attribute |
| -S | Clear the system attribute |
|
|
available on the web at: |
http://mindprod.com/jgloss/chmod.html |
optional Replicator mirror
|
J:\mindprod\jgloss\chmod.html | |
![]() |
Please email your
feedback for publication,
letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear
wording, broken/redirected link reports, suggestions to improve this page or comments to
Roedy Green :
| |
| Blog | Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[184.72.184.104] |
|
| Feedback | You are visitor number 14,848. | |