← 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
- Show the first five lines of /var/log/syslog.
- 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.