Pages

Wednesday, November 26, 2014

View all new log messages in real time with color

$ find /var/log -type f -readable -iregex '.*[^\.][^0-9]+$' -not -iregex '.*gz$' 2> /dev/null | xargs tail -n0 -f | ccze -A

This will show all changes in all log files under /var/log/ that are regular files that are readable by the user and don't end with `gz` nor with a number.




commandlinefu.com


by David Winterbottom (codeinthehole.com)






from All commands http://ift.tt/15vtInA

No comments:

Post a Comment