chmod : Java Glossary
home C words local find no local find frame, full screen Google search web for topic jump to footer translate with Babelfish by Roedy Green ©1996-2008 Canadian Mind Products
Go to : punctuation 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 (all)
chmod
Most likely your ISP uses some Unix variant as its webserver to host your web pages. In Unix there are permissions on each file. Are you may or may not be allowed to look at (read), change (write), or execute each file. The permissions are separately recorded for myself, other users in my "group ", and the world at large, including strangers out on the net.

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.

Learn To Count Applet: to sharpen your intuition on how binary and octal work

There is a high order bit that tells if a "file" is actually a directory: d rwx rwx rwx. In that case:

Windows and NT use a different scheme, controlled with the ATTRIB command.
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
Also

CMP_homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.16] The information on this page is for non-military use only.
You are visitor number 9,899. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/Mindprod website mirror)
http://mindprod.com/jgloss/chmod.html J:\mindprod\jgloss\chmod.html