CIS 170 - Introduction to UNIX

Course Documentation

Assignments

Note: Check Desire2Learn/Brightspace for a briefly available extra credit exercise.

  1. Unix/Linux basics (due 9/6/15)
  2. Filesystem basics (due TBA)

Notes

  1. Course overview (8/24/15)
  2. logging in (8/24/15)
  3. OS basics (8/24/15)
  4. UNIX and Linux history (8/24/15)
  5. shell basics (8/24/15)
  6. getting help (8/31/15)
  7. command line structure (8/31/15)
  8. general system commands (8/31/15)
  9. filesystem basics (8/31/15)
  10. filesystem commands (8/31/15)
  11. file handling commands
  12. wildcard expansion (globbing) and brace expansion
  13. hard and soft (symbolic) links
  14. file details and access permissions
  15. redirection and piping
  16. searching for files
  17. communication and networking commands
  18. processes, jobs, and signals
  19. text editor: vi
  20. text editor: emacs
  21. text editor: nano/pico
  22. file manipulation commands (cut, paste, uniq, tr)
  23. sorting
  24. file compression and archiving commands
  25. modifying the prompt (optional)
  26. Midterm exam
  27. Regular expressions
  28. scripting basics
  29. arithmetic
  30. scripting: tests and selection
  31. heredocs
  32. scripting: repetition
  33. scripting: functions
  34. formatted output
  35. scripting: sed
  36. scripting: awk
  37. Linux installation, package installation, Linux GUI discussion
  38. work on assignments
  39. final exam review
  40. Final exam (12/14/15, 6:00 PM - 7:50 PM)

Spring 2015 scripting examples

  1. prog00.sh: shebang line, comments
  2. prog01.sh: use a variable, get input from the user
  3. prog02.sh: get input from the user (read command)
  4. prog03.sh: command substitution, environment variables, set exit status
  5. prog04.sh: special variable $0
  6. prog05.sh: special variables $0, $#, $1, $2, $?
  7. prog06.sh: tests (number of argumnets, string length, exit status), "if/else" statement
  8. prog07.sh: tests (file tests: exists, readable, etc.), "if/else" statement
  9. prog08.sh: tests: NOT (!), AND (-a)
  10. prog09.sh: repetition: "for" loop
  11. prog10.sh: repetition: running another script inside "for" loop
  12. prog11.sh: input validation (for valid integer) and repetition
  13. prog12.sh: input validation (for valid integer within range) and repetition
  14. prog13.sh: same as prog12.sh, but range is stored in variables
  15. prog14.sh: "for" loop displaying random numbers
  16. prog15.sh: "for" loop generating coin flips
  17. prog16.sh: "for" loop generating coin flips and counting them
  18. prog17.sh: "for" loop generating random numbers within a range
  19. prog18.sh: "while" loop to let user decide whether to run a nested loop again
  20. prog19.sh: "while" loop for user input validation, nested loops

Useful links

Return Links

Mr. Klick's Home Page