IT 244: Introduction to Linux/Unix
Class 7

Today's Topics

Tips and Examples


New Material

Homework 4

I have posted Homework 4 here.

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

The is the first homework assignment that will require you to write a script.

Your script must meet certain requirements that I mentioned in the last class.

Let's review the requirements for homework scripts.

Quiz 1

I have posted the answers to Quiz 1 here.

Tips and Examples

Checking Class Exercises

An Easy Way to Create Homework Scripts

Read the Specification

Always Check Your Work

Common Mistakes with Pipes


uniq - Eliminate Duplicate Lines

diff - Differences between Files

The Shell Prompt

file - See the File Type

Pipes - Stringing Programs Together

date - Get the Date and Time

which - Finding a Program File

whereis - Finding Files Used by a Program

locate - Search for Any File

who - See Users Logged On

finger - Get information on Users

New Material

Text File Conversion Programs

Compressing Files with bzip2

gzip - the GNU Compression Utility

tar - Packaging Files for Transfer or Storage

The Hierarchical Filesystem

Unix Files and Directories


Case Sensitivity

Filename Extensions

Current Directory

Your Home Directory


Graded Quiz