






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







When deciding who can have access to a file,UNIX recognizes three categories of users:1. Owner: The owner of the file or directory2. Group: Other users belonging to the owner’s
group
There are three things that can be done to a
file
the program There are also three things that can be done to a directory
removing existing files
The chmod (change mode) command can usethe following notation:
u^
user (owner) of a file/directory g^
group o^
others (public) +^
add a permission
-^
remove a permission
Examples:
chmod o+r resume.htmlchmod g-x resume.html
There are also values associated with each typeof access:
r^ ↔
w
x^
The sum of these values gives a combination ofthe permissions.Examples:
4 = r only6 = r and w but not x7 = r, w, and x
The important command:• Rename (move) a file:
mv old_name new_name
Examples:• Change the name of resume.html to main.html• Make the name of the image file all lowercase
After submitting Web pages, you should not makechanges to them. Any changes should be made toa copy of the page.The important commands:• Create a new directory:
mkdir directory_name
cp old_name new_name
Example: Copy the main page.