basic file commands such as cp, mv, rm, mkdir, etc. (Week 2)
absolute/relative paths (Week 2)
filter commands such as sort, head, tail etc. (Week 5)
pipes and file redirections (Week 2 and 5)
SSH and SCP commands (Week 6)
be able to read simple bash scripts. (Week 10)
variables like $?, $#, $*, etc. (Week 10)
using regular expressions with grep, sed, and awk (Week 9 and 11)
…and more
Here are some topics that are NOT ON THE EXAM
vim commands
network commands such as ping, nmap, netstat
UNIX theory: inodes, processes, etc.
Some resources to study from
Review lecture notes (especially summaries)
Redo assignment sections that you find difficult (repeating any part of the assignments won’t affect your final grade!)
Review and correct your quizzes and midterm
The ULI101 Homepage has links to more lecture notes and exercises
ULG has exam review and even more practice questions
If you have questions about a particular topic, you may ask me for clarification
Here are some general questions that you should be able to answer after your review. These don’t include everything you might see on the exam, but should give you an idea.
What is the command to set file1’s permissions so a user can read write and execute, and everyone else can read and execute? What is command so that these are also the default permissions for all new files? What is command to remove execute permissions from group?
What is the difference between regular expressions and file expansions?
How can you recognize an absolute path (what character does it contain at the beginning?) How can you recognize a relative-to-home path?
What is the meaning of !!? Of 2>>? Of &1?
What happens when you enter the command touch this and that?
What is output of echo '$USER' and of echo "$USER"?
Explain what this code is doing: if [ $? -eq 0 ]
What command will transfer a file to a remote location (like the Matrix server)?
What command will list the background jobs that are running?
What command will create a symbolic link syslog for the file /var/log/system.log in the directory ~?
What will be the output of this command: grep -iv '^c' cars?
What will be the output of this command: awk '$5 ~ /^[^4][0-9][0-9]$/ {print $1,$2,$NF}' cars
What command will replace every " with a ' in the file demo.old?
How do you specify a delimiter in awk?
What command will copy a directory (and its contents) called legit-content from /home/user/Downloads into your current directory (assume that you are user?)