Follow a Log File on Linux

The last 100 lines, then new lines as they arrive; -F keeps following when the log rotates. Fill in the details below to get the exact command.

  • Free
  • No Sign-Up
  • Runs in Your Browser

Follow a Log File

tail -n 100 -F /var/log/nginx/error.log

The last 100 lines, then new lines as they arrive; -F keeps following when the log rotates.

Linux Command Generator

The command

Commandtail -n 100 -F /var/log/nginx/error.log
CategoryLogs
Works OnUbuntu, Debian, AlmaLinux, Rocky Linux

The last 100 lines, then new lines as they arrive; -F keeps following when the log rotates.

Questions

How do I follow a log file on Linux?
Run: tail -n 100 -F /var/log/nginx/error.log

Run VMs for other people?

Frabs stops spam, scans and floods leaving your customers' VMs, before the abuse report lands.