Display changes in several files simultaneously
If there is a need to enable the display of saved data at the same time as log files, you do not need to run several consoles - you can include them all in tail -f.
Recently, it was useful for me in the case of system logs when the server restarted several minutes after the restart and we want to see what is happening immediately before it.:
1 | tail -f /var/log/{messages,kern.log,daemon.log,syslog} |
Of course, if restarts are random, it is worth implementing error logging to an external server, but in many cases this method is sufficient.
Related entries:
Perfect server on Ubuntu 18.04 Nginx, MySQL, PHP, Postfix, BIND, Dovecot, Pure-FTPD z panelem IS...
Installing Java 13 w Ubuntu 18.04 / Ubuntu 19.10
Installing Notepad ++ on Ubuntu
Error: username does not appear in the file sudoers. This incident will be reported.
Changing the Hostname in Ubuntu 20.04 and Debian 11