NOTE: The scripts and programs in this directory may have had a ".txt" suffix added, to make sure that they are treated as text when your browser downloads them. You may need to remove the ".txt" suffix to compile or run them on your own computer.

Weekly Class Notes

Jan 12 11:23 2005  week01notes.txt   Week 1 Notes for NET2003
Jan 19 03:45 2005  week02notes.txt   Week 2 Notes for NET2003
Jan 26 02:49 2005  week03notes.txt   Week 3 Notes for NET2003
Jan 31 05:27 2005  week04notes.txt   Week 4 Notes for NET2003
Feb  9 10:17 2005  week05notes.txt   Week 5 Notes for NET2003
Feb 16 09:46 2005  week06notes.txt   Week 6 Notes for NET2003
Mar 22 20:52 2005  week07notes.txt   Week 7 Notes for NET2003
Mar 10 07:10 2005  week08notes.txt   Week 8 Notes for NET2003
Mar 13 05:55 2005  week09notes.txt   Week 9 Notes for NET2003
Mar 23 02:00 2005  week10notes.txt   Week 10 Notes for NET2003
Mar 24 07:06 2005  week11notes.txt   Week 11 Notes for NET2003
Apr  6 09:59 2005  week12notes.txt   Week 12 Notes for NET2003

Important Notes (alphabetical order)

Feb 14 13:48 2005  CGI_script.txt   Building a CGI Script on Unix
Jan  4 13:22 2005  README.txt   README - Index to this NET2003 directory
Jan  4 17:50 2005  arguments_and_options.txt   Options and Arguments on Unix Command Lines
Jan 11 14:57 2005  caddy.txt   Drive caddy jumper issues - /dev/hda /dev/hdb
Mar 31 10:13 2005  chkconfig.txt   The chkconfig command and SysV start-up scripts
Jan 30 09:15 2005  collate_order.txt   Collate order - making GLOB patterns and sorting work
Jan 29 05:58 2005  command_substitution.txt   Command Substitution - $(unix command)
Jan  4 16:42 2005  course_linux_server.txt   The Course Linux Server
Jan  4 16:29 2005  datsubmit.txt   Using the datsubmit command
Jan 29 05:06 2005  deep_nesting.txt   Avoiding deeply nested IF statements (Structured/Un-Structured)
Nov  1 13:08 2004  exit_status.txt   Return Code, Exit Status, test, if, and while
Feb 12 04:39 2011  file_system.txt   Unix/Linux File System - (correct explanation)
Jan  4 17:07 2005  file_transfer.txt   File transfer between machines
Apr 17 09:55 2005  finaltest3directions.txt   Directions and preparing for Test #3 (Final Exam) [First DRAFT]
Jan 23 16:58 2005  finding_files.txt   Searching for and finding files by name
Jan 20 02:10 2005  glob_patterns.txt   GLOB patterns (wildcard pathname matching)
Jan  4 17:18 2005  home_and_HOME.txt   Directories: current, HOME, and /home
Jan  4 17:35 2005  how_to_print.txt   How to print things in NET2003
Feb 16 09:59 2005  http_session.txt   sample HTTP session using the "nc" command
Jan  4 16:06 2005  internet_basics.html   Internet Basics
Jan 25 21:56 2005  job_control.txt   Shell background/foreground job control
Feb  2 08:43 2005  knoppix_booting.txt   Using the Knoppix Linux CDROM
Jan 29 05:35 2005  less_code.txt   Less Code is Better Code - stop cutting and pasting identical code
Oct 20 10:50 2005  links_and_inodes.html   Hard links and Unix file system nodes (inodes)
Jan 26 02:10 2005  man_page_RTFM.txt   Searching for items in the Unix manual pages (RTFM)
Mar 24 06:00 2005  mandrake_config.txt   Mandrakelinux Configuration - making the server useful using urpmi
Mar 15 00:00 2005  mandrake_install.txt   Mandrakelinux Install - fdisk partitioning, booting GRUB, etc.
Mar 15 06:02 2005  mandrake_network.txt   Mandrakelinux Network Repair - if your Mini system has no networking
Jan 23 19:38 2005  miscellaneous.txt   Miscellaneous Unix Facts
Apr  6 09:36 2005  mobile.txt   Linux configuration on a removable disk
Feb 16 09:45 2005  nntp_session.txt   sample NNTP session using the "nc" command
Sep 27 05:47 2011  pathnames.txt   Unix/Linux Pathnames
Jan 10 03:02 2005  permissions.txt   Unix Permissions
Jan 17 05:12 2005  practiceCommands_1.txt   Practice Unix/Linux Questions #1
Mar  4 01:52 2005  practiceCommands_2.txt   Practice Unix/Linux Questions #2
Mar  2 09:13 2005  practiceCommands_3.txt   Practice Unix/Linux Questions #3
Nov  9 01:08 2004  quick_tests.txt   Return Code, Exit Status, ||, &&, test, and if
Jan 17 03:25 2005  quotes.txt   Unix/Linux Shell Command Line Quoting
Feb  5 16:54 2011  redirection.txt   Unix Shell I/O Redirection (including Pipes)
Feb  7 00:22 2005  script_checklist.txt   Shell Script Checklist - a list of things to verify in your shell scripts
Mar  2 08:45 2005  script_practice1.txt   Practice Script #1 Specifications
Mar  2 08:48 2005  script_practice2.txt   Practice Script #2 Specifications
Mar  2 09:33 2005  script_practice2answer.txt   Two sample solutions to script_practice2.txt
Mar  4 01:10 2005  script_practice3.txt   Practice Script #3 Specifications
Mar  4 01:15 2005  script_practice3answer.txt   Script Practice #3 answer - 71 marks
Mar  4 01:10 2005  script_practice4.txt   Practice Script #4 Specifications
Mar  4 01:15 2005  script_practice4answer.txt   Script Practice #4 answer - 69 marks
Feb 27 07:05 2005  script_style.txt   Shell Script Programming Conventions and Style
Mar 16 00:00 2005  server_admin.txt   Linux Server Administration - reboot/shutdown, backups
Jan  4 17:41 2005  shell_prompt.txt   Setting the BASH shell prompt
Feb 15 13:19 2005  shell_read.txt   Reading stdin into shell variables - read, EOF, and exec
Jan 26 09:42 2005  shell_script_execution.txt   How a Shell Script is "Executed"
Jan 25 22:01 2005  shell_variables.txt   Shell Variables you should know (including $* and $@)
Feb 16 09:30 2005  smtp_session.txt   sample SMTP session using the "nc" command
Jan  4 18:10 2005  startup_files.txt   Setting up Startup Files: .bash_profile and .bashrc
Mar 16 16:35 2005  t111_server.txt   T111/114/115 Server Available
Jan  7 06:34 2005  terminal.txt   Using telnet/ssh Terminal emulators
Jan 30 15:36 2005  umask.txt   Umask and Permissions
Feb 28 07:14 2005  unix_command_list.txt   Basic Unix/Linux Command List
Jan 23 14:47 2005  unix_shell.txt   The Unix/Linux Shell
Jan  4 17:43 2005  vi_basics.txt   The VI (VIM) Editor - Basics

Projects/Labs/Assignments/Exercises (for hand-in)

Jan 10 04:26 2005  exercise01.txt   Exercise #1 for NET2003 due January 10, 2005
Jan 17 09:00 2005  exercise02.txt   Exercise #2 for NET2003 due January 17, 2005
Jan 24 09:16 2005  exercise03.txt   Exercise #3 for NET2003 due January 24, 2005
Feb  7 04:18 2005  exercise03_myscript.sh.txt   Exercise #3 myscript.sh sample solution
Jan 26 04:48 2005  exercise03_myscript.txt   Exercise #3 sample output from myscript.sh
Jan 31 06:34 2005  exercise04.txt   Exercise #4 for NET2003 due February 3, 2005
Apr  7 13:05 2005  exercise04_myscript4.sh.txt   Demonstrate data manipulation using Unix pipes
Apr  7 13:36 2005  exercise04_weather.sh.txt   Fetch the current Ottawa temperature from the Enviro Canada web site.
Feb  7 05:02 2005  exercise05.txt   Exercise #5 for NET2003 due February 15, 2005
Apr 10 12:05 2005  exercise05_weather5.sh.txt   fetch via WWW the current temperature for a select set of Canadian cities
Feb 14 06:38 2005  exercise06.txt   Exercise #6 for NET2003 due February 28, 2005
Apr 21 16:13 2005  exercise06_date_cgi.txt   This CGI script displays the date and one passed argument.
Apr 21 16:17 2005  exercise06_weather6a_cgi.txt   This CGI script displays the Ottawa weather temperature.
Apr 21 16:28 2005  exercise06_weather6b_cgi.txt   This CGI script displays the temperature for a given city code
Feb 28 07:11 2005  exercise07.txt   Exercise #7 for NET2003 due March 1, 2005
May  1 21:16 2005  exercise07_partitions.sh.txt   Output a list of partitions and types for a given disk letter
Apr 22 16:13 2005  exercise07_week7answers.txt   assignment label here
Mar  4 04:32 2005  exercise08.txt   Exercise #8 for NET2003 due March 7, 2005
Mar 13 21:15 2005  exercise09.txt   Exercise #9 for NET2003 due March 14-21, 2005
Mar 13 21:50 2005  exercise10.txt   Exercise #10 for NET2003 due March 21, 2005
Mar 21 02:38 2005  exercise11.txt   Exercise #11 for NET2003 due March 21, 2005
Apr 22 16:37 2005  exercise11_week10answers.txt   assignment label here
Mar 24 10:02 2005  exercise12.txt   Exercise #12 for NET2003 due March 28/30, 2005
Apr  5 17:26 2005  exercise13.txt   Exercise #13 for NET2003 due April 4/8, 2005
Apr 22 17:25 2005  exercise13_week12answers.txt   assignment label here

Shell Scripts

Jan 30 20:35 2005  argv.sh.txt   This shell script displays the command line arguments.
Feb  7 04:18 2005  commandline_arguments.sh.txt   demonstrate the use of command line arguments in a script
Feb  7 04:18 2005  elif.sh.txt   Syntax:
Feb  7 04:18 2005  file_size_classer.sh.txt   Classify a file as small, medium, large.
Feb 25 03:25 2004  iftest1.sh.txt   We don't want the usual output of DIFF on the screen, so we throw it away.
Feb 25 03:26 2004  iftest2.sh.txt   For a list of numeric comparison operators, see the "test" man page.
Feb 25 03:26 2004  iftest3.sh.txt   String comparison uses "=" not "-eq".
Feb 25 03:26 2004  iftest4.sh.txt   See the "test" man page for a larger list of file-testing operators.
Feb 25 03:27 2004  iftest6.sh.txt   Issue an error message unless exactly one command line argument is given.
Feb 25 03:27 2004  iftest7.sh.txt   Print an error if the argument is missing, or is not a file.
Nov 15 13:59 2004  iftest8.sh.txt   Specifications:
Nov 15 13:56 2004  iftest9.sh.txt   Specifications:
Feb  7 04:18 2005  integer_sort.sh.txt   read three integers and sort them
Feb  7 04:18 2005  optional_args1.sh.txt   Demonstrate method 1 for prompting for missing command line arguments.
Feb  7 04:18 2005  optional_args2.sh.txt   Demonstrate method 2 for prompting for missing command line arguments.
Feb  7 04:18 2005  optional_args3.sh.txt   Display PWD MAIL HOME replaced by optional command line arguments.
Feb  7 04:18 2005  passwd_string_finder.sh.txt   look for an optional string in the Unix password file
Feb  7 04:18 2005  path_tester.sh.txt   Perform several tests on the first argument to this script.
Feb  7 04:18 2005  path_validator.sh.txt   Validate a single command line argument (file or directory).
Mar  2 08:45 2005  script_practice1.sh.txt   Sample solution to script_practice1.txt
Feb  7 04:18 2005  shellread.sh.txt   demonstrate the use of the shell "read" built-in command
Oct 14 17:06 2003  showtest.sh.txt   This script runs in "debug" mode (see the -x above).
Feb  7 04:18 2005  sort_top_five.sh.txt   This scripts sorts a file and displays the top 5 lines.
Feb  7 04:18 2005  string_compare.sh.txt   This script compares two strings: an argument and stdin.
Feb  7 04:18 2005  wait_login.sh.txt   Syntax: $0 userid
Feb  7 04:18 2005  weather1.sh.txt   A weather script to show the current temperature in Ottawa
Feb  7 04:18 2005  weather2.sh.txt   A weather script to show the current temperature in Ottawa.
Feb 17 18:56 2005  while1.sh.txt   Syntax: $0 (no arguments)
Feb  7 04:18 2005  while2.sh.txt   Syntax: $0 number

Program Source

Sep 20 23:15 2004  argv.c++.txt   Save this program as: argv.c++
Sep 20 23:15 2004  argv.c.txt   Save this program as: argv.c
Jan 24 02:43 2004  stdxxx.c++.txt   Produces output on stdout and stderr, prompts and reads from stdin.

Miscellaneous

Jan 24 16:25 2005  net2003-05w.pdf   
Apr  6 03:04 2005  text_errata.txt   Errors in Advanced Linux Networking by Roderick W. Smith

Quizzes, Tests, and Exams

Jan 20 01:52 2005  practiceTest1.pdf   
Jan 19 03:06 2005  practiceTest1.ps   
Jan 19 03:06 2005  practiceTest1.txt   Practice Test #1 Questions
Mar  4 04:22 2005  practiceTest2.pdf   
Mar  4 04:22 2005  practiceTest2.ps   
Mar  4 04:22 2005  practiceTest2.txt   Practice Test #2 Questions
Jan 23 18:53 2005  termtest1directions.txt   Directions and preparing for Test #1
Jan 26 16:04 2005  termtest1marksanalysis.txt   Question Selection for Multiple Choice Test #1
Jan 26 15:53 2005  termtest1multiplechoice.pdf   
Jan 26 15:53 2005  termtest1multiplechoice.ps   
Jan 26 15:53 2005  termtest1multiplechoice.txt   Test #1 Multiple Choice
Mar  4 01:56 2005  termtest2directions.txt   Directions and preparing for Test #2
Mar 10 11:24 2005  termtest2marksanalysis.txt   Question Selection for Multiple Choice Test #2
Mar  9 18:17 2005  termtest2multiplechoice.pdf   
Mar  9 18:17 2005  termtest2multiplechoice.ps   
Mar  9 18:17 2005  termtest2multiplechoice.txt   Test #2 Multiple Choice
Mar  9 10:50 2005  termtest2shell.pdf   
Mar  9 10:50 2005  termtest2shell.ps   
Mar  9 10:50 2005  termtest2shell.txt   Test #2 Shell Programming
Mar  9 18:19 2005  termtest2shellanswer.txt   Test #2 sample answer - Script Part II - 88 marks - 13 of 25%

Optional Material

Jan  4 16:25 2005  opt_why_shell.txt   Why Learn the Unix Shells?
Jan  4 16:24 2005  opt_opensource.txt   The Open Source Movement
Aug 30 04:01 2004  opt_mainframe_linux.txt   IBM System/390: The Linux Dream Machine