Updated: 2012-03-03 02:52 EST

1 Tests and Exams Index up to index

2 Lecture Notes for This Week Index up to index

2.2 From the Classroom Whiteboard/Chalkboard Index up to index

2.2.1 Topic: Fun and You Index up to index

2.2.2 Topic: more Commands Index up to index

2.2.3 Topics: Shell Features Index up to index

  • Shell Standard Input, Output, Error - Redirection
    • I/O to and from programs using | (pipes)
  • Questions
    • What are the Rules for Pipes? See Unix Shell I/O Redirection (including Pipes)
    • extracting just field 3 from every line:  awk '{print $3}' [files...]
    • extracting just the LAST field from every line:  awk '{print $NF}' [files...]
    • examples using real authorization log http://ian.idallen.ca/auth.log
      • first and last lines
      • only sshd lines
      • count of sshd lines
      • first and last sshd lines
      • refused sshd lines (attempted attacks)
      • count of refused sshd lines (attacks)
      • IP addresses of most attacks (see “3.3 Examples of pipes” in the above Redirection link for the full pipeline)

2.2.4 Topic: The VIM (and VI) editor Index up to index

2.2.5 Topic: Modes and Permissions Index up to index

| Ian! D. Allen  -  idallen@idallen.ca  -  Ottawa, Ontario, Canada
| Home Page: http://idallen.com/   Contact Improv: http://contactimprov.ca/
| College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/
| Defend digital freedom:  http://eff.org/  and have fun:  http://fools.ca/

Plain Text - plain text version of this page in Pandoc Markdown format

Campaign for non-browser-specific HTML   Valid XHTML 1.0 Transitional   Valid CSS!   Creative Commons by nc sa 3.0   Hacker Ideals Emblem   Author Ian! D. Allen