How do you do a tail log?

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

Tìm kiếm

Back
Top