COP 3344-01 Introduction to Unix: Lecture 11
Learning objectives
After this class, you should be able to:
- Explain the purpose of the following environment variables: (i)
DISPLAY, (ii)HOME, (iii)MANPATH, (iv)PATH, (v)SHELL, (vi)TERM, and (vii)USER.- Explain the difference between a regular variable and an environment variable.
- Give the order in which startup files are executed when using
tcsh.- Use the the following commands in
tcsh: (i)alias, (ii)limit, (iii)set, and (iv)setenv.- Set the prompt to have a desired format in
tcsh.- Set the path to have a desired value in
tcsh.
Reading assignment
- JEA: chapters 28, 30.
- Lecture slides: Lecture 11.
Exercises and review questions
- Questions on current lecture's material
- Set an environment variable called
MYBINto have the value~/binin (i)bashand (ii)tcsh.- Set the path in your
.tcshrcfile so that it appends the following directories to your current path:~/binand..- Give the order in which startup files are executed on (i)
linprogand (ii)programwhen using tcsh.- Alias
cd ~/bintocdb.- Set your
tcshprompt to so that it displays the machine name and at most two directories, followed by a$sign.- Questions on next lecture's material
- None. Prepare for the final exam.