Unix I
Tom Kelliher, CS 240
Feb. 6, 2002
SPIM reading from before.
Immediate instruction format, conditional branches.
- Unix.
- Hands-on Unix lab.
SPIM intro lab.
-
The most important command: logout/ exit.
-
The second most important command: man. As in:
- man man
- man spim
- man -k files
-
The most important command after logging in for the first time:
passwd
- The Delete key doesn't work.
- There are suspended jobs.
- The path component separator: /, not
\.
- The arrow keys and other cursor positioning keys.
- Those ``funny'' keystroke sequences in emacs.
- Toggling between emacs and the shell.
- Forgetting your Unix text when you're working.
-
Ctrl-c, Ctrl-z, Ctrl-d,
Ctrl-q/Ctrl-s.
ls -aCF
ls -a -C -F ~kelliher/pub
ls -l ~
cat /usr/var/Enron/offShoreAccounts
less /usr/var/Enron/offShoreAccounts
w | grep eshmookl
gcc -o homework1 homework1.cc library.cc
./homework1 > homework1.results
rm *
rm -i *
alias rm 'rm -i'
less .cshrc .login
script
- Your userid and group.
- Your home directory.
- The filesystem; navigation: ., ..
- Relative, absolute pathnames.
- Directory commands: cd, mkdir, rmdir, pwd,
ls.
- Filenames; wildcards, abbreviations. File completion.
- File commands: rm, less, cp, mv.
- File permissions.
- The superuser.
- Processes.
- Environment and shell variables: PRINTER, PAGER,
EDITOR.
Edit ~/.login and change PRINTER from pclab to black.
- The shell.
- Getting help: man, online resources, books.
- .cshrc, .login, .twmrc, and .xinitrc.
See lab handout.
Thomas P. Kelliher
Tue Feb 5 13:07:12 EST 2002
Tom Kelliher