IT 244: Introduction to Linux/Unix
Class 28

Today's Topics


Final Exam

The final exam will be given on Tuesday, December 19th from 3:00 - 6:00.

The exam will be given in McCormack 3-430.

There will be 50 questions, which will be similar to the questions on the mid-term and the quizzes.

As with the Mid-term, 60% of the questions will come from the ungraded Class Quizzes.

The questions will cover all of the material for this course.

Today's class will be a review session.

You will only be responsible for the material contained in the Class Notes for today's class, and the Class Notes for the review session for the Mid-term, which you will find here.

Although the time alloted for the exam is 3 hours, I would expect that most of you would not need that much time.

You will not be able to leave the room until you turn in your exam paper so you should visit the restroom before you take the test.

The final is a closed book exam.


Running a Command in the Background


Moving a Job from the Foreground into the Background

Aborting a Background Job

Pathname Expansion

The ? Meta-character

The * Meta-character

The [ and ] Meta-characters


Creating Startup Files

Redirecting Standard Error

Shell Scripts

Making a Shell Script Executable

Specifying Which Version of the Shell Will Run a Script

Comments in Shell Scripts

Separating and Grouping Commands

| (pipe) and & (ampersand) as Command Separators

Continuing a Command onto the Next Line

Shell Variables

Local Variables

Global Variables

Keyword Shell Variables

Important Keyword Shell Variables

User-created Variables

Quoting and the Evaluation of Variables

Removing a Variable's Value


Process Structure

Process Identification

Executing a Command


Using the History Mechanism

The Readline Library

Readline Completion

Pathname Completion

Command Completion

Variable Completion



Shell Modification of the Command Line

History Expansion

Alias Substitution

Brace Expansion

Tilde, ~, Expansion

Parameter and Variable Expansion

Command Substitution

Pathname Expansion

Shell Script Control Structures

The if ... then ... Construct


The test Operators

Using test in Scripts

The if ... then ... else ... Construct

The if ... then ... elif ... Construct

for ... in ... Loops

for Loops

while Loops



read Command