IT 244: Introduction to Linux/Unix
Class 28

Today's Topics


Final Exam

The final exam will be given on Tuesday, May 21st. from 3:00 - 6:00.

The exam will be given in this room.

The final will be similar to the mid-term and will consist of a number of questions.

60% of the questions will come from the Ungraded Class Quizzes.

Although classes do not end until Wednesday, May 15th, I do not have materials for a 29th class, and do not have the time to prepare them.

Instead, on day when the last class would normally be held, Tuesday, May 14th I will have office hours from Noon to 6 PM.

You may come to my office at any time during this period, for help of any sort, without making an appointment.

Today's class, will be a review session.

You will only be responsible for the material in today's Class Notes and the review 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.

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

Positional and Special Parameters

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