Unix II
Tom Kelliher, CS23
Feb. 14, 1997
Homework assignment:
Project 11, pg. 48 of Carrano. Due Feb. 21 in class.
Do your work on
keystone. Print your source file(s); they will be collected in class. Use
script to record a run of the program. Use pine to e-mail me
the script file containing the run. (Use ^R
to read the file
into the message text. Do not use ^J
to attach the file to
the message text.) Ignore the optional part.
Why use a command line interface? Why use Unix?
- The filesystem:
- Unified tree.
- Traversing the tree: ., ..,
~
, *,
?.
- Permissions on files. umask ( .cshrc) and file
creation.
- Hidden files.
- Shell variables (modify/put in .cshrc):
- prompt
set prompt="\
%m:%~\
%% "
- autologout:
set autologout=120
- noclobber:
set noclobber
- Aliases (modify/put in .cshrc):
- alias ? apropos
- alias cp 'cp -i'
- alias e %emacs
- alias grep 'grep -i'
- alias lpr 'lpr -h'
- alias ls 'ls -F'
- alias ll 'ls -l'
- alias msgs 'msgs -p'
- alias mv 'mv -i'
- alias rm 'rm -i'
- Environment variables (modify/put in .login)
- setenv BLOCKSIZE 1K
- setenv LESS "-ceiMswx3"
- setenv PAGER less
- setenv PRINTER ljg35
-
setenv XRSH_AUTH_TYPE xauth
- Copying files.
- Moving/Renaming files.
- Changing permissions on files.
- Removing files.
- Printing files.
- Creating/Removing directories.
- Communicating: e-mail, messages, talk. ``Netiquette.''
- Personal information: personal home page, .plan and finger.
- Seeing who's on the system.
- Running the C++ compiler.
- Running a program.
Thomas P. Kelliher
Fri Feb 14 11:32:39 EST 1997
Tom Kelliher