Re: [CentOS] grep from /

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



If someone tries to grep a whole Centos 4 server as root from / for a
single
word, will you see errors like this?   :-)

WARNING:  Kernel Errors Present
   Buffer I/O error on device fd0p10...:  51 Time(s)
   Buffer I/O error on device fd0p11...:  51 Time(s)
   Buffer I/O error on device fd0p12...:  51 Time(s)
   Buffer I/O error on device fd0p16...:  102 Time(s)
   Buffer I/O error on device fd0p24...:  51 Time(s)
   Buffer I/O error on device fd0p28...:  51 Time(s)
   Buffer I/O error on device fd0p32...:  51 Time(s)
   Buffer I/O error on device fd0p4,...:  102 Time(s)
   Buffer I/O error on device fd0p44...:  51 Time(s)
   Buffer I/O error on device fd0p48...:  102 Time(s)
   Buffer I/O error on device fd0p52...:  51 Time(s)
   Buffer I/O error on device fd0p56...:  51 Time(s)
   Buffer I/O error on device fd0p76...:  204 Time(s)
   Buffer I/O error on device fd0p8,...:  51 Time(s)
   Buffer I/O error on device fd0p84...:  51 Time(s)
   Buffer I/O error on device fd0p92...:  51 Time(s)


you may want to use "--exclude=PATTERN". In this case the dir /dev

grep -R --exclude=/dev "some_term"

--
Mark

"If you have found a very wise man, then you've found
a man that at one time was an idiot and lived long enough
to learn from his own stupidity."
==============================================
Powered by CentOS4 (RHEL4)
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux