CIS 170 - Introduction to UNIX

Course Documentation

Assignments

  1. Unix/Linux basics (due 1/27/14)
  2. Filesystem basics, permissions (due 2/10/14)
  3. File details and globbing (due 2/17/14)
  4. Redirection, editors, processes (due 2/24/14)
  5. Regular expressions (due 3/26/14)
  6. Scripting: basics (due 3/31/14)
  7. Scripting: selection (due 4/7/14)
  8. Scripting: repetition (due 4/14/14)
  9. Scripting: functions (due 4/21/14)
  10. Scripting: awk, sed, and sort (due 4/28/14)

Notes

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

Sample scripts from Fall 2013

  1. Basics
    1. demo01: simple command in a script
    2. demo02: shebang line and comments
  2. Variables, special variables, command substitution, getting user input
    1. demo03: setting and using variables
    2. demo04: using command substitution, storing command output in a variable
    3. demo05: displaying exit status ($?), setting exit status
    4. demo06: using special variables ($#, $0, $1-$9), basename command
    5. demo07: exploring options of the "read" command
  3. Selection: if/elif/else
    1. demo08: using an "if" command and string tests to check user input
    2. demo09: using an "if/else" command and string tests to check user input
    3. demo10: check number of arguments, display an error message, set exit status
    4. demo11: file tests, testing and using command line arguments
    5. demo12: demo11 script using an if/elif/else statement
    6. demo13: check user input using grep, checking exit status, use the -o test
  4. Repetition: for, while
    1. demo14: using a "for" loop with wildcard expansion
    2. demo15: using a "for" loop with an explicit list of values
    3. demo16: using "for" loop to display info about all non-hidden files in current directory
    4. demo17: "while" loop demonstration
    5. demo18: user input validation using grep and a while loop
  5. Functions
    1. demo19: a simple function
    2. demo20: passing arguments to a function

Useful links

Return Links

Mr. Klick's Home Page