tail -f /var/log/messages | grep -E --line-buffered --color '.*kernel.*|$'
This will show all lines from the tail, with lines having ‘kernel’ in them colored.
tail -f /var/log/messages | grep -E --line-buffered --color '.*kernel.*|$'
This will show all lines from the tail, with lines having ‘kernel’ in them colored.