IT 244: Introduction to Linux/Unix
Class 5

Course Work


Course Requirements


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.

Readings

If you have the textbook you should read chapter 3, The Utilities.

Homework 3

I have posted homework 3.

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

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 sending me an email, fix the problem.

If you do not know how to fix it, post a question on Piazza or contact the Class Assistant.

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.

Questions

Are there any questions before I begin?

Course Work

Importance of Exams

Preparing for Exams

Course Requirements

Shell Scripts for Homework Assignments

Scripts for Class Exercises

Tips and Examples

Do Not Fall Behind in This Course

Read the Homework Assignments Carefully

Working with More than One Window

Shell Scripts

Review

Special Characters

Quoting and Escaping

pwd - Show Your Current Directory

cd - Change 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

Attendance

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.

Class Exercise

Class Quiz