Display log files in real time
Use tail command as follows:# tail -f /var/log/squid/access.log
OR$ sudo tail -f /var/log/squid/access.log
Search log files
Use grep command as follows:grep 'string-to-search' /var/log/squid/access.log
View log files
Finally you can use text editor such as vi to view log files:# vi /var/log/squid/access.log
No comments:
Post a Comment