IT 244: Introduction to Linux/Unix
Class 18 Exercise, Tuesday, April 20th


Log in to pe15

Directory for This Exercise

(When you are ready for me to check this exercise, please scroll back up to where you entered these commands!)

Start Up a script Session

Execute the script command, using the --flush option

    script --flush

Continuing a Command on the Next Line

NOTE: Where you see the following notation:
    \[Enter]
...that means to input the backslash character,  \  , and then press the Enter key.

Changing Prompts

Semi-colon,  ; , to Separate Commands

& to Separate Commands

Important Keyword Shell Variables

Local Variables

Global Variables

The Directory Stack

Exit Your script Session

Use the exit command

    exit
You should see a confirmation message confirming that the script session is finished, resulting in a file called typescript. I will look at the typescript file, along with the other files in your directory.

Bash Script for This Exercise