Last updated 2004-06-28 by Roedy
Green ©1996-2004 Canadian Mind Products
Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
You are here : home : Java Glossary : C words : chmod.
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.
There is a high order bit that tells if a "file" is actually a directory: d rwx rwx rwx. In that case:
| 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 |
home |
Canadian Mind Products | |||
| mindprod.com IP:[24.87.56.253] | ||||
| Your IP:[80.134.30.163] | ||||
| You are visitor number 1455. | ||||
| Please send errors, omissions and suggestions | ||||
| to improve this page to Roedy Green. | ||||
| You can get a fresh copy of this page from: | or possibly from your local J: drive mirror: | |||
| http://mindprod.com/jgloss/chmod.html | J:\mindprod\jgloss\chmod.html | |||