Unix: File System and Utilities
Tom Kelliher, CS23
Feb. 12, 1996
To correct the telnet ``deficiencies'' in the Math/CS Lab:
- Click: Setup, Transports, Edit..., then choose the radio button so
that the emulator sends CRLF
Part of the filesystem hierarchy on keystone:
- Navigating: cd
- The current directory: .
- The parent directory: ..
- Absolute paths
- Relative paths
- Where am I: pwd
- Extending the filesystem: mkdir (permissions)
- Contracting the filesystem: rmdir (empty)
- Looking around: ls (options: -a, -l, etc.)
- Quick and dirty viewing and creating: cat
- Nicer file viewing: more or less ( PAGER)
- Rearranging: cp and mv
- Cleaning up: rm (safety net)
- Printing:
- lpr
- lpq
- lprm kelliher
- lp, lpche
- lpr switches: -P, -h ( lpr -Plpche hw1.cc)
- Finding programs: which, whereis
- Categorizing file: file
- Comparing files: diff, cmp
Owner, group
Permission categories:
Permissions:
- Read
- Write
- Execute/Search
- Default permissions: umask
- Changing permissions: chmod
- Absolutely:
chmod 755 ~kelliher/pub
- Symbolically:
chmod go+rx ~kelliher/pub
- Globbing files: tar
- Compressing and uncompressing files: gzip, gunzip,
gzcat
- User information: finger elvis Send mail to kelliher AT DOMAIN abacus
- What's running: ps, top
- Getting away with murder: kill ( ctrl-c for foreground)
Thomas P. Kelliher
Fri Feb 9 17:47:39 EST 1996
Tom Kelliher