IT 244: Introduction to Linux/Unix
Class 19

Tips and Examples


Review

New Material


Microphone

Graded Quiz

You can connect to Gradescope to take weekly graded quiz today during the last 15 minutes of the class.

Once you start the quiz you have 15 minutes to finish it.

You can only take this quiz today.

There is not makeup for the weekly quiz because Gradescope does not permit it.

Homework 9

I have posted Homework 9 here.

As usual, it will be due next Sunday at 11:59 PM.

Tips and Examples

Using Control Z with an Editor

Redirecting Output From Background Job

Questions

Are there any questions before I begin?

Review

Shell Variables

Creating a Shell Variable

Scope

Local Variables

Global Variables

Choosing the Scope of a Variable

Defining Global Variables

Keyword Shell Variables

Important Keyword Shell Variables

User-created Variables

env - Show All Global Variables

The read command

Separating and Grouping Commands

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

Continuing a Command onto the Next Line

Using Parentheses, ( ) , to Run a Group of Commands in a Subshell

The Directory Stack

dirs - Displays the Directory Stack

pushd - Pushes a Directory onto the Stack

popd - Pops a Directory off the Stack

Attendance

New Material

Positional and Special Parameters

Quoting and the Evaluation of Variables

Removing a Variable's Value

Variable Attributes

Processes

System Calls

The History of Computer Languages

Creating a New Process

How the Shell Runs a Program

Process Structure

Booting a Unix Machine

Process Identification

Class Exercise

Class Quiz