Level 1
0 / 100 XP

Welcome

1234567

Often you just want to read a file without opening a full editor. Linux gives you several quick ways to do that. In this lab you'll practice:

  • cat — dump a whole file to the screen
  • cat -n — same, but with line numbers
  • head — show just the first few lines
  • tail — show just the last few lines
  • less / more — page through a longer file

You start in your home folder, and the files for this lab live in a subfolder called projects — a short haiku.txt and a longer server.log. First you'll move into that folder, then read the files.

Restoring lab progress…