IT 244: Introduction to Linux/Unix
Class 5

Today's Topics

Tips and Examples


Course Requirements


Review


New Material

Reading Assignment

The reading assignment for this week is chapter 3 of Sobell, The Utilities.

You will find a list of all reading assignments here.

There is a link to this page on the class web page.

Homework 3

I have posted Homework 3 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.

Late Penalty

You will lose 2 points for every day that your assignment is late.

Every Unix file has a time stamp that changes every time the file is modified

I look at this time stamp to determine whether a submission is late.

If your assignment is not working by the due date, you can continue to work on it but you will lose a few points.

If your assignment is working, do not go back and change it, because that will change the time stamp and result in a late penalty.

Do Not Email Me about Missing Assignments

If you get an email from me saying an assignment is missing do not email me about this.

I get far too many emails.

Instead of emailing me fix the problem.

I collect homework assignments and and check Class Exercises several times during the week.

I will check or collect your assignment later in the week.

Class Exercises

Scripts for each Class Exercise must have the correct name and be in the correction location or my scripts will not see them.

If my scripts do not see them, your score with be zero.

If you receive no email from me about your Class Exercise script, that means your script will get full credit, less any late penalty that applies.

Tips and Examples

Do Not Fall Behind in This Course

Read the Homework Assignments Carefully

Working with More than One Window

Shell Scripts

Course Requirements

Shell Scripts for Homework Assignments

Scripts for Class Exercises

Review

Special Characters

Quoting and Escaping

cd - Change Directory

pwd - Show Your Current Directory

ls - List the Contents of a Directory

cat - Print the Contents of a File

rm - Delete a File

mkdir - Create a Directory

rmdir - Delete a Directory

cp - Copy Files

mv - Move a File or Directory

New Material

echo - Print Text to the Terminal

hostname - Print the Name of Your Host Machine

Pagers - View a File One Screen at a Time

Pathname Completion

grep - Finding Strings inside Files

tail - View the Bottom of a File

sort - Print a File in Sorted Order

Class Exercise 5

Class Exercise 5 is the first exercise where you will have to write a shell script.

You will create a text file using nano, and type the Linux commands into it.

You must create this file in your ex5 directory.

Please note that the first few sections of Class Exercise 5 should not be included in your ex5.sh script.

Test your script to see that it works.

When your script works, come see me so I can test it with my test script.

Attendance

Graded Quiz