IT 244: Introduction to Linux/Unix
Class 14 - Midterm Review

Tips and Examples


Review


Microphone

Homework 7

I have posted homework 7 here.

It is NOT due this coming Sunday.

Instead it is due Sunday, October 27th.

This is to give you time to study for the midterm.

And to give me time to score it.

Midterm

The Midterm exam for this course will be held on Tuesday, October 22nd.

It will be given in this room.

It will consist of 25 questions like those on the quizzes.

60% of the questions will come from the Graded Quizzes.

The other 40% of points will be questions that I create specially for this exam.

For these questions you will have to know

Today's class will be a review session.

You will only be responsible for the material in today's Class Notes on the exam.

If for some reason you cannot take the exam on the date mentioned above you must contact me to make alternate arrangements.

The Midterm is given on paper.

I scan each exam paper and upload the scans to Gradescope.

I score the exam on Gradescope.

You will get an email from Gradescope with your score when I am done.

The Midterm is a closed book exam.

You are not allowed to any resource, other than what is in your head, while taking the exam.

Cheating on the exam will result in a score of 0 and will be reported to the Administration.

Remember your Oath of Honesty.

To prevent cheating, certain rules will be enforced during the exam.

Remember, the Midterm and Final determine 50% of your grade.

Quiz 5

I have posted the answers to Quiz 5 here.

No Class Exercise or Class Quiz

Today is a review session.

There will no Class Exercise or Class Quiz today.

Questions

Are there any questions before I begin?

Studying for the Midterm with Flashcards

Review

Retrieving Your Last Command Line Entry

Aborting a Running Program

Getting Help with Unix Commands

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

echo - Print Text to the Terminal

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

Pipes - Stringing Programs Together

which - Finding a Program File

finger - Get information on Users

The Hierarchical Filesystem

Case Sensitivity

Filename Extensions

Current Directory

Your Home Directory

Attendance

Hidden Filenames

The . and .. Directory Entries

Pathnames

Absolute Pathnames

Tilde ~ in Pathnames

Relative Pathnames

Relative Pathnames in Your Current Directory

Relative Pathnames in a Subdirectory

Relative Pathnames above the Current Directory

Relative Pathnames Neither above Nor below the Current Directory

Access Permissions

Viewing Access Permissions

chmod

Using chmod with Numeric Arguments

The root Account

Directory Access Permissions

ln

Running a Program in Unix

Command Options

The PATH System Variable

Running a Program in the Current Directory

Standard Input, Standard Output and Standard Error

The Keyboard and Screen as Standard Input and Standard Output

Redirection

Redirecting Standard Output

Redirecting Standard Input

Redirecting Standard Output Can Destroy a File

Adding Output to an Existing File

/dev/null