I want to find place to where Linux writes all boot messages. You know:
facility one [STARTED]
facility two [STARTED]
facility three [FAILED]
I searched with
find . -print0 | xargs -0 grep -i "words from boot messages"
in /var/log/, but found nothing.
I have CentOS 5.5.
For example at boot time I had: "Determining IP information for eth0... failed; no link present. Check cable?"
I don't care about error specificaly, but I can't find any log that holds this error.
dmesg | grep "no link present"
returns nothing too.
find
command with root permissions?find
will print all files you can list, butgrep
can only check the files you can read & some log files might be owned by root withput read permissions for other users. Also, at least GNU grep supports th-l
option to print the names of files with matches instead of matched lines. This can be very usefule looking for files that contain certain text. So trysu -c 'find /var/log -print0 | xargs -0 grep -l -i "words from boot messages"'
orsudo find /varlog -print0 | xargs -0 sudo grep -l -i "words from boot messages"