User Tools

Site Tools


haas:spring2014:unix:labs:lab4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
haas:spring2014:unix:labs:lab4 [2014/02/09 14:58] – [History] wedgehaas:spring2014:unix:labs:lab4 [2014/02/09 15:00] (current) – [Environment Variables] wedge
Line 144: Line 144:
   * <nowiki>$</nowiki>SHELL   * <nowiki>$</nowiki>SHELL
  
-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 <nowiki>$</nowiki> prefixing an ALL-CAPITAL variable name. This is to visually distinguish them. Lowercase names can be used for personal variables that are declared.
  
  
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 (in the form of: echo $VARNAME)</WRAP>+<WRAP round info box>The **echo** utility can also be used for displaying the contents of environment variables</WRAP>
  
 ^  5.  ^|Do the following:| ^  5.  ^|Do the following:|
Line 253: Line 253:
  
 ^  11.  ^|To take advantage of tab completions, let's enter some commands (don't hit enter unless instructed):| ^  11.  ^|To take advantage of tab completions, let's enter some commands (don't hit enter unless instructed):|
-| ^  a.|lab46:~$ cd /u <- hit tab|+| ^  a.|lab46:~<nowiki>$</nowiki> cd /u <- hit tab|
 |:::^  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:/usr/bin$ ls v <- hit tab|+|:::^  g.|lab46:/usr/bin<nowiki>$</nowiki> ls v <- hit tab|
 |:::^  h.|Does it beep?| |:::^  h.|Does it beep?|
 |:::^  i.|Press tab again.| |:::^  i.|Press tab again.|
haas/spring2014/unix/labs/lab4.1391957886.txt.gz · Last modified: 2014/02/09 14:58 by wedge