How do you do a tail log?
Answer
How to Use the Tail Command
Answer
How to Use the Tail Command
- Enter the tail command, followed by the file you’d like to view: tail /var/log/auth.log.
- To change the number of lines displayed, use the -n option:
- To show a real-time, streaming output of a changing file, use the -f or –follow options:
- Tail can even be combined with other tools like grep to filter the results: