IT 244: Introduction to Linux/Unix
Class 24 Exercise, Tuesday, May 5th


Log in to users

Directory for this Exercise

Start Up a script Session

Execute the script command, using the --flush option

    script --flush

Using test, as  [ ] , with Numbers

Using test with String Comparison Operators

Using test with Single String Operators

Using test logical operators

Using test with File and Directory Operators

if ... then ... else ...

if ... then ... elif ...

Simple for Loop

for ... in ... Loop

Three Expression for Loop

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, and you will probably also noticed that you are back in the original directory, from where you first ran the script command.