← BYTES
Troubleshooting·Starter·Ref: 16.1.8

What does the `tail -f` command do, and why is it commonly used when troubleshooting?

Have a question about this video? Mention reference 16.1.8 when you contact us.

a.It deletes the last lines of a file
b.It only shows the very first line of a file
c.It compresses a log file
d.It continuously prints new lines appended to a file in real time, letting you watch a log file update live as events happen
`tail -f logfile` follows the file, printing new lines as they're written -- the standard way to watch a log in real time while reproducing or waiting for an issue, rather than repeatedly re-opening the file to see what's new.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES1618#Troubleshooting