IT 244: Introduction to Linux/Unix
Class 19

Tips and Examples


Review

New Material


Microphone

Questions

Are there any questions before I begin?

Homework 9

I have posted Homework 9 here.

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

Graded Quiz Today

After I finish talking I will pass out the papers for today's graded quiz.

Today's Class

Today I will discuss how scripts can use command line arguments, processes and how the shell runs programs.

Tips and Examples

Don't Use Google for Homework Assignments

Using Control Z with an Editor

Redirecting Output From Background Job

Review

Shell Environment

Shell Variables

Creating a Shell Variable

Scope

Local Variables

Global Variables

Where Does a Shell Get It's Environment?

Choosing the Scope of a Variable

Defining Global Variables

Changing 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

Attendance

New Material

Positional and Special Parameters

Quoting and the Evaluation of Variables

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