Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 4060

Beginners Questions • Re: [Solved] Searching for errors in logs

$
0
0
Hi

You can also use less to search for lines containing the pattern (EE)

Code:

less -Sp "\(WW\)" /var/log/Xorg.0.log
then press n to go to the next occurrence of the pattern,
or N to go to the previous one.

(S is for the option chop-long-lines => The portion of a long line that does not fit in the screen width is not displayed until you press RIGHT-ARROW.)

Statistics: Posted by itmicp — 2025-12-30 21:44



Viewing all articles
Browse latest Browse all 4060

Trending Articles