This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
haas:spring2014:unix:labs:lab4 [2014/02/09 14:54] – wedge | haas:spring2014:unix:labs:lab4 [2014/02/09 15:00] (current) – [Environment Variables] wedge | ||
---|---|---|---|
Line 144: | Line 144: | ||
* < | * < | ||
- | Environment variables are identified with the $ prefixing an ALL-CAPITAL variable name. This is to visually distinguish them. Lowercase names can be used for personal variables that are declared. | + | Environment variables are identified with the < |
Line 153: | Line 153: | ||
|:::^ d.|What is your path?| | |:::^ d.|What is your path?| | ||
- | <WRAP round info box>The **echo** utility can also be used for displaying the contents of environment variables | + | <WRAP round info box>The **echo** utility can also be used for displaying the contents of environment variables</ |
^ 5. ^|Do the following:| | ^ 5. ^|Do the following:| | ||
Line 232: | Line 232: | ||
^ 9. ^|At your prompt, enter the following commands:| | ^ 9. ^|At your prompt, enter the following commands:| | ||
- | | ^ a.|lab46:~$ echo "###" | + | | ^ a.|lab46:~< |
- | |:::^ b.|lab46:~$ echo "You got it"| | + | |:::^ b.|lab46:~< |
- | |:::^ c.|lab46:~$ echo " | + | |:::^ c.|lab46:~< |
|:::^ d.|Type history. Do you see the echo statements listed?| | |:::^ d.|Type history. Do you see the echo statements listed?| | ||
|:::^ e.|What number is the "You got it" line?| | |:::^ e.|What number is the "You got it" line?| | ||
Line 253: | Line 253: | ||
^ 11. ^|To take advantage of tab completions, | ^ 11. ^|To take advantage of tab completions, | ||
- | | ^ a.|lab46:~$ cd /u <- hit tab| | + | | ^ a.|lab46:~< |
|:::^ b.|What happens?| | |:::^ b.|What happens?| | ||
|:::^ c.|[same line]: b <- hit tab| | |:::^ c.|[same line]: b <- hit tab| | ||
Line 259: | Line 259: | ||
|:::^ e.|Press the enter key| | |:::^ e.|Press the enter key| | ||
|:::^ f.|What is your current working directory?| | |:::^ f.|What is your current working directory?| | ||
- | |:::^ g.|lab46:/ | + | |:::^ g.|lab46:/ |
|:::^ h.|Does it beep?| | |:::^ h.|Does it beep?| | ||
|:::^ i.|Press tab again.| | |:::^ i.|Press tab again.| | ||
Line 267: | Line 267: | ||
<WRAP round info box>If you haven' | <WRAP round info box>If you haven' | ||
- | |||
=====Conclusions===== | =====Conclusions===== | ||
This assignment has activities which you should tend to- document/ | This assignment has activities which you should tend to- document/ | ||
As always, the class mailing list and class IRC channel are available for assistance, but not answers. | As always, the class mailing list and class IRC channel are available for assistance, but not answers. |