USB device history
Hello,
Can anyone tell me how to view messages showing Dates and times when a USB device was used in RHEL 6.6? I have seen comments to delete the dmesg file. Can someone tell me how to view it? Thanks |
Quote:
You may also find the information in /var/log/messages useful. |
Quote:
Welcome to the forum :) If not located in "/var/log/messages," you can also try "/var/log/syslog." Please see answer "0" here. :) Regards... |
Quote:
I tried to run the /var/log/messages it comes back as.. "Permission denied". I am logged in as root (Super User)# So I tried to this option: cat /var/log/messages And I only see messages today July 13. So we're the earlier messages cleared? Thanks |
/var/log/messages is a file, not a command, so you need to use cat, less, more, vi, or some other text editor to open it and read it. It's also rotated on a regular basis, if you run "ls /var/log/messages*" you should see older versions, eg:
messages messages-20150621 messages-20150628 messages-20150705 messages-20150712 By default, CentOS 6 rotates /var/log/messages on Sunday, which is why the current one only has information for today. Just open up the one you're interested in. |
All times are GMT -5. The time now is 10:16 AM. |