Unix I
Tom Kelliher, CS 240
Feb. 11, 2004
SPIM reading from before.
Homework due Feb. 18: 3.2, 3.5 (use only MIPS machine language), 3.6, 3.9,
and 3.12.
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 ckonradi
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 to either hs149 or
hs123ps.
- The shell.
- Getting help: man, online resources, books.
- .cshrc, .login, .twmrc, and .xinitrc.
See lab handout.
Thomas P. Kelliher
Tue Feb 10 18:16:45 EST 2004
Tom Kelliher