Linux
Tom Kelliher, CS 220
Sept. 12, 2007
Solutions to exercises from last time available online.
Appendix A discusses assemblers and SPIM. Look through it.
Conditional branches.
- Linux.
- Hands-on Linux lab.
SPIM intro lab.
- GUI (Cygwin/X) and text-based (SSH) environments.
- 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 Linux 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.
- The shell.
- Getting help: man, online resources, books.
See lab handout.
Thomas P. Kelliher
2007-09-10
Tom Kelliher