-k' to send control sequences to the editor. Another popular UNIX
editor is emacs.
Students really seem to have a hard time with permissions, but once you
know this simple technique, you should have no more problems. If you type
'ls -l' you should see atleast one line that has this 'rwxr-xr-x' out front
or something like it. The first set of 3 stands for user permissions, the
second for group, and the third is other. Read, write, and execute are what
'rwx' stand for. Ok, this is really simple if you understand binary and you
should being in computer science. Think of each 'rwx' as a set of three
binary numbers. If the permission is set(on) then you see the letter. By
typing 'chmod 753 foo' the 7 stands for '111' in binary, five is '101', and
three is '011'. This sets the file 'foo' to have these permissions
'rwxr-x-wx'. Some quick notes, normally your file permissions have a
default of 600, which is determined by your user mask('umask'). Web
documents need to be read and executable by your group and other, 'chmod 755
foo.html' --> 'rwxr-xr-x'. NEVER provide write access for your group or
other to your files, as anyone could delete or change your file. Now see
that wasn't hard. For more information or maybe a better explanation try
looking at the man page on 'chmod'.
Home | Information
| Academics | People
| Resources | Contact
The Department of Computer Science at the University of Illinois at Springfield
Copyright© 2002 University of Illinois at Springfield