4 examples for tail

{{ score }}
  # View the end of a file and "follow" it.  This is especially useful for watching changes in a log file.
tail -f logFile.txt
        
{{ score }}
  # To show the last [n] lines of an logfile. Here 20 lines:
tail -n20 logfile.log
        
{{ score }}
  # View the end of a file, and "follow" it.  If the file is replaced or truncated, follow the new file that is now pointed to by the filename
tail -F logFile.txt
        
{{ score }}
  # tail multiple log files
tail -f /var/log/messages /var/log/*/*.log