The Andrew File System (afs) is the name of the file system that is used by the UNIX operating system on our machines. There are many commands that affect the files and directories that are available to UNIX users.
This tutorial will not teach you every afs command that you will ever need to know. Rather, the goal is to introduce you to some of the most useful commands for manipulating files and directories in UNIX. See more info for more suggestions.
In this tutorial you will learn the purpose of each of the commands listed above and how to use them.
mkdir tempdir
and press Enter. You have now created an empty directory with
the same permissions as the parent directory of the directory
created.
cd tempdir
to c
hange to the d
irectory
that you just created.
fs la .
to l
ist the a
cls (access list)
for the current directory. Note: the period [.] in the command shown refers to the current working directory.
Your permissions should look something like this:
Of course, your CS login should be listed instead of deppeler.
fs sa . CSlogin write
to allow the user with the
CS login name CSlogin to create and
edit files in this directory. Note: This is not a good idea to do unless you want that user to be able to create and edit files in this directory.
Your permissions should look something like this if you are intending to give the user with the CS login name "smoler" the ability to read and write files in this directory:
pts creategroup deppeler:cs367_A0
to create a new
users group that is owned by "deppeler". You may only create groups for
yourself. So, replace "deppeler" with your CS login name. Choose a name
for your permissions group that will be easy to remember later on, but
that is not too long. Choosing a name that reflects the course and the project
that you will be working on with this group of users is usually a good start.
In the example below, I chose cs367_A0 to indicate any users that will need
to be able to create and edit assignment 0 files for the course cs367.
Your xterm should look something like this if you create the cs367_a0 group as described above:
fs sa . deppeler:cs367_ao write
to assign write
permissions to all members of the newly created group.fs la .
to list the acls again to see the results:Your xterm should look something like this:
pts adduser smoler deppeler:cs367_a0
to add the user
named "smoler" to the newly created group.pts membership deppeler:cs367_a0
to see the list of all
users in this access group.Your xterm should look something like this:
pts removeuser smoler deppeler:cs367_a0
to remove
the user named "smoler" from the group.pts delete deppeler:cs367_a0
to remove the
group when it is no longer necessary.pts help
to see a list of other commands that can
be performed with the pts
command.In this lesson you have learned how to use the fs and pts commands of the UNIX environment.
man fs
at a command-line prompt for even more
information about the fs command line options.Last modified: 1/07/2004
Feedback, questions or accessibility issues.
Copyright © 2001 Deb Deppeler