Linux 实时查看日志文件的 4 种方法
log/apache2/access.log sudo tail -f /var/
log/apache2/access.log sudo tailf /var/
log/apache2/access.log sudo tail -F /var/
log/apache2/access.log sudo tail -n2 -f /var/
$ sudo apt install multitail [On Debian & Ubuntu]
$ sudo yum install multitail [On RedHat & CentOS]
$ sudo dnf install multitail [On Fedora 22+ version]
$ sudo multitail /var/log/apache2/access.log /var/log/apache2/error.log
$ sudo apt install lnav [On Debian & Ubuntu]
$ sudo yum install lnav [On RedHat & CentOS]
$ sudo dnf install lnav [On Fedora 22+ version]
$ sudo lnav /var/log/apache2/access.log /var/log/apache2/error.log
sudo less + F /var/log/apache2/access.log
Manage Files Effectively using head, tail and cat Commands in Linux
How to Setup and Manage Log Rotation Using Logrotate in Linux
Petiti – An Open Source Log Analysis Tool for Linux SysAdmins
How to Query Audit Logs Using ‘ausearch’ Tool on CentOS/RHEL
Manage Log Messages Under Systemd Using Journalctl {Comprehensive Guide}
相关文章