Basics of Bash

Theory: Viewing files

Lesson notes

  • cat to view a file
  • head to view first 10 lines
  • tail to view last 10 lines
  • tail -f to view last 10 lines and update in real time
  • grep to filter out lines (e.g. cat towns.txt | grep Norbrige)