Professional Documents
Culture Documents
LAB 10: Read both of your text books + lecture notes + outside materials such as the
internet about shell and answer the following questions.
(b) $HOME:
(c) $PS1:
(d) $PWD:
(b) create a shell script file called yourlastname1.sh and save it in the directory you
created above in (a). This script file should retrieve the value of PS1 and
PS2 environmental variable and output the following two statements:
NOTE: //code: here, write the code that retrieve PS1 and PS2 value.
(d) Observe: run command from your terminal to see the value of PATH
environmental variable. What directory line is added to this variable that allows
your script to execute?
(e) Take a screen shot and attach output for all the above steps.