PATCH//NOTES Open it in the app
← All hands-on practice
Linux · 8 min

Read the top and bottom of a log

A long log can tell you different things at each end. Use head to read the first five lines, then tail to read the last five lines of the same file.

Start it: free, in your browser, no account

What you will do

  1. Show the first five lines of /var/log/syslog.
  2. Now show the last five lines of /var/log/syslog.

A simulated Ubuntu-style shell with a small file system. It is not your computer.