skip to content
Alvin Lucillo

Monitoring files

/ 1 min read

Monitoring files, especially log files, can be easily done with tail. Just provide the file with the -f arg. tail -f /var/log/syslog

By default, it will show the last 10 lines. If you want to see more, just add the -n 20 arg where 20 indicates the last 20 lines.