In-class Examples List
CS 279 - Introduction to Linux
Fall 2012
Last modified: Tuesday, December 11, 2012
Important Notes:
- This is merely a selection of files and examples, most of which were
mentioned or used in the class (lectures and labs). It is not a
comprehensive
list, nor are all lectures and labs included. Formatting is generally
minimal.
- Week 15, Lecture 2, December 6, 2012 - Final Exam review -
screen shot of examples projected in-class
- Week 15, Lecture 1, December 4, 2012 - some more commands:
date, cal, printf, df, du, uname, sudo, useradd, passwd -
and a little system administration advice -
Week 15 Lecture 1 projected notes
- Week 14, Lecture 2, November 30, 2012 - uptime, a few attempted words about
load average, top, at, batch, and
IFS used with read -
Week 14 Lecture 2 projected notes
- Week 14, Lab, November 29, 2012 - intro to crontab, lab exercise on
crontab, RCS, and the bash case statement -
Week 14 Lab projected notes
- Week 14, Lecture 1, November 28, 2012 - intro to bash case
statement, intro to RCS (revision control system) -
Week 14 Lecture 1 projected notes
- Week 13, Lecture 2, November 15, 2012 - talking more about
expr and bc; intros to sleep, time, wait, nohup, nice,
renice -
Week 13 Lecture 2 projected notes
- Week 13, Lab, November 14, 2012 - practicing with command-line
sftp under openSUSE -
screen shot of clicker-question-related examples projected in lab
- Week 13, Lecture 1, November 13, 2012 - talking a bit more
about bash functions, intro to sftp;
looks like there is some expr and bc play here, too -
Week 13 Lecture 1 projected notes
- Week 12, Lecture 2, November 8, 2012 - intro to
bash shell script functions -
Week 12 Lecture 2 projected notes
- Week 12, Lab, November 7, 2012 - intro to openSUSE and KDE -
Week 12 Lab projected notes
- Week 11, Lecture 1, October 30, 2012 - more history-related
command-line shortcuts, and intro to sed, continued -
Week 11 Lecture 1 projected notes
- Week 10, Lecture 2, October 25, 2012 - a few more ls options,
intro to head and tail, beginning of intro to sed -
Week 10 Lecture 2 projected notes
- Week 10, Lab, October 24, 2012 - setting your bash
command prompt -
Week 10 Lab projected notes
- Week 10, Lecture 1, October 23, 2012 - intro to the
BASH_REMATCH array (holds matches to regular expression
subexpressions), intro to gzip/gunzip and tar -
Week 10 Lecture 1 projected notes
- Week 9, Lecture 2, October 18, 2012 - a little more on bash arrays, and
intro to find part 2 -
Week 9 Lecture 2 projected notes
- Week 9, Lab, October 17, 2012 - intro to find part 1, and
intro to bash arrays -
Week 9 Lab projected notes
- Week 9, Lecture 1, October 16, 2012 - more on diff, wc, touch,
tee, and starting intro to the find command -
Week 9 Lecture 1 projected notes
- Week 8, Lecture 2, October 11, 2012 - interactive input,
how to get the exit status of the last command executed,
a few words on device files (including /dev/null),
a few words on the commands which, cmp, and diff -
Week 8 Lecture 2 projected notes
- Week 8, Lab, October 10, 2012 - little bit more on conditional
tests, and some useful odds-and-ends such as exiting a
shell script early and looping through all the lines of a
file -
Week 8 Lab projected notes
- Week 8, Lecture 1, October 9, 2012 - using regular expressions -
more grep options, bash if-statement, and a smattering of
tests for if-conditions -
Week 8 Lecture 1 projected notes
- Week 7, Lab, October 3, 2012 - more on regular expressions -
Basic Regular Expressions (BREs) and Extended Regular Expressions (EREs)
- and command line arguments in bash shell scripts -
Week 7 Lab projected notes
- Week 7, Lecture 1, October 2, 2012 - continuing with
Basic Regular Expressions in UNIX (BREs) -
Week 7 Lecture 1 projected notes
- Week 6, Lecture 2, September 27, 2012 -
Week 6 Lecture 2 projected notes
- varplay.sh
- tiny shell used to play with local variables
- trydog.sh
- tiny shell used to demo the difference between
environment and local variables (but only works
if you set up variables dog and cat in the calling
shell in advance)
- clicker1.sh
- tiny shell used to demo clicker 1 question
- clicker2.sh
- tiny shell used to demo clicker2 question
- Week 6, Lab, September 25, 2012 -
Week 6 Lab projected notes
- backup-all.sh
- tiny shell used to demo backquoting a command
and a "list-style" for-in loop
- backup-txt.sh
- another tiny shell used to demo backquoting a command
and a "list-style" for-in loop
- oinky.sh
- tiny shell used to demo backquoting a command
and a "list-style" for-in loop along with the
command
grep -l
- other-for.sh
- tiny shell used to demo a "count-controlled"/
"traditional" for-loop
- Week 5, Lecture 2, September 20, 2012 - Review for Exam 1,
to be given NEXT TUESDAY, September 25th; Exam 1 Review Suggestions
(in tagged PDF)
- Week 5, Lab, September 19, 2012 - more from Chapter
2, including
Week 5 Lab projected notes
- Week 5, Lecture 1, September 18, 2012 - more from Chapter
2, including
Week 5 Lecture 1 projected notes
- Week 4, Lecture 2, September 13, 2012 - more from Chapter
2, including
Week 4 Lecture 2 projected notes
- Week 4, Lecture 1, September 11, 2012 - more from Chapter
2, including
Week 4 Lecture 1 projected notes
- Week 3, Lecture 2, September 6, 2012 - more from Chapter
2, including
Week 3 Lecture 2 projected notes
- Week 3, Lab, September 5, 2012 - more from Chapter 2,
including control character assignments, filename expansion
wildcard characters, and signals;
Week 3 Lab projected notes
- Week 2, Lecture 2, August 30, 2012 - more from Chapter
2, including symbolic mode for specifying file permissions;
Week 2 Lecture 2 projected notes
- Week 2, Lab, August 29, 2012 - intro to writing bash
shell scripts, a little more from Chapter 2;
lab2script.sh, our
first bash shell script
- Week 2, Lecture 1, August 28, 2012 - starting Chapter 2
of the course text: UNIX basics/fundamentals;
Week 2 Lecture 1 projected notes
- Week 1, Lecture 2, August 24, 2012 - more UNIX/Linux history
and background;
Week1 Lecture 2 projected notes
- Week 1, Lab, August 22, 2012 - Going over a basic "starter"
set of UNIX commands/forms;
edited history file of commands demonstrated during lab
Back to Course Home Page
Please send questions to:
sharon.tuttle@humboldt.edu