http://www.cs.washington.edu/education/courses/458/CurrentQtr
Rooms B015 and B025 in the basement of the
Communications Building
When you log in you'll see a rectangular menu in the upper left corner of the screen (this is called the ToolChest). Use the left mouse button to click down on 'Desktop', then in the menu that appears drag down and release on 'Unix Shell'. You can have any number of shells open at the same time. Explore the ToolChest for things like customizing the appearence of your desktop.
The shell is where you'll start programs like Alias and Netscape, and where you'll check your mail and enter Unix commands. When you log in you'll also see a few icons along the right side of your screen. One is a folder with your login name on it. If you double click on it you'll see an icon interface to your files (and the entire directory structure, actually). You are on your own if you decide to use this interface. We recommend that you learn the Unix commands for file & directory manipulation since the TAs are all Unix proficient and ready to help.
To log in to the UW computer where you have an email account, like
Dante, enter the following at the prompt in your shell:
prompt% telnet dante.u
From a networked computer you can remotely log in to any of the LA2
machines. The names of the machines are: bobe, chuck, friz, max,
otto, shawn, tex, walt. Here's how you'd log into max:
prompt% telnet max.animarts.washington.edu
To start a program, open a shell and at the prompt, type the name of
the program followed by an ampersand. The ampersand is not absolutely
necessary; it starts the program in the background, which to you means
that the prompt will reappear and you'll be able to start more programs
from that shell. Start Alias and netscape like this (notice the captial 'A' in Alias):
prompt% netscape &
prompt% Alias &
Some programs, like StudioPaint and Composer, can also be started from
the Utilities menu in Alias. And various programs can be started from the
'Find' menu in the ToolChest.
Each of the sgi's in LA2 has a DAT drive which you can use for backing up your work. The kind of tape these drives take is: '4mm-DL 90M'. You can get these at the University Bookstore Computer Store. We will do periodic backups of everything, so it's up to you whether you do your own backups.
You can use either tar
or tapetool
to do
backups. Tapetool is essentially a visual interface to tar, and is
recommended if you don't feel like reading the man page for tar. Keep
in mind that tapetool creates a new archive file on your tape,
overwriting anything previously written to the tape. Also, make sure that
you do a listing of the contents of your tape after backing up because
some of the drives are feisty and the backups are not always successful.
Feel free to ask a TA for help doing backups.
gr_osview
and gr_top
(the
underscore is part of the command name). Read the
man pages on these applications to learn how to customize which
resources they monitor.
Type who
at the prompt to see who's
logged in remotely to your machine. There is also a script called
WHO (yes, all caps) in the course home directory. Run it to see
who's logged in to all the machines in the lab. There's a link to a
script on the class home page that does the same thing.
Cut and Paste: Click down on the left mouse button and drag over some text, to highlight. This text, now stored in a buffer, can be pasted somewhere, like an emacs file or another shell, by clicking with the middle mouse button where you'd like the text to appear.
Command History: Hit the up arrow at the command prompt to step back through the history of commands you've entered. This is a quick way to enter a command that you've entered recently without typing it out.
/home/cse458/ | This is the course home directory. Assignments will be turned in somewhere in here. See assignment handouts for details. |
/usr/aw/3DCD/ | Some cool shaders, models, etc. can be found here |
/home/yourlogin/user_data/demo/ | This is the directory in which Alias operates by default. You'll learn more about its subdirectories in a helpsession. |
man commandname |
Learn everything there is to know about a command (all the options it takes, etc.) |
File Manipulation | |
mv f1 f2 |
Move file 'f1' to new name 'f2' |
mv f1 d1 |
Move file 'f1' into directory 'd1' |
rm f1 f2 |
Delete files 'f1', 'f2', ... |
chmod op f1 |
Unix files and directories each have permissions associated with them. These permissions
are displayed when you do ls -l . You'll see a string of nine characters:
rwxrwxrwx, where any of the letters might be replaced by a '-'. The first three letters are
the read, write, execute permissions for the User, the next three for the
Group, and the last three for the World. A dash in the place of a letter means that that
particular permission is turned off. There are various ways to change permissions. You should
read the man page on chmod to learn about them. Here is an example of using
chmod:Change the permissions on my home directory to be world readable: First the permissions looked like this: drwxr-x--x 26 katrin student 3584 Dec
31
14:55 katrin Then I enter this at the prompt: prompt% chmod o+r katrin Now my directory is world readable: drwxr-xr-x 26 katrin student 3584 Dec 31 14:55 katrin "o+r" in the above use of chmod means "others can read". (Or, for example, "a+x" means "a+x" means "all can execute", and "g-w" means "group can't write".) |
Directory Manipulation | |
pwd |
Pathname of current directory |
ls d1 |
ls alone lists the contents of the
current directory. If a directory 'd1' is specified, it lists the
contents of that directory. |
cd d1 |
Change to directory 'd1', where 'd1' is either a full or relative
path name. '..' (two periods) stands for the
parent directory, so "cd .. " means back up out of the
current directory. |
mkdir d1 |
Make a directory named 'd1' |
rmdir d1
| Delete the directory named 'd1' if it is empty (all files have
been removed with rm ) |
Process Manipulation | |
ps -u username |
List all the processes that 'username' (usually you) is running |
kill pid |
Kill a process whose PID (process ID) you've determinded from a
ps listing |
kill -4 pid |
If your terminal freezes up because of Alias, the -4 option of
killing it, by logging in from another terminal, attempts to save your work in a file called
_m.saved |
Checking Disk Usage | |
df -k | See how
much space is left on the different disks in the filesystem. The -k option gives the listing
in terms of kilobytes rather than the default 512byte blocks. Here is an example of what
you'll see on the LA2 machines:
In the above listing, disk51 is 92% full, and has a total capacity of about 4gig. About 3.7gig of that are in use, and about 340meg remain. |
du -ks |
Summarize disk usage. The -s option, shows you only the grand total of the current (or specified) directory. Leave the -s out if you want to see the usage of each of the contents of your directory. The -k option gives the listing in terms of kilobytes instead of the default half-kilobyte (512 bytes). |
ls
-al | List all of the contents of a directory (including hidden, dot-files) in long format (file size is displayed). |