LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-13-2015, 03:32 PM   #1
Cacara
LQ Newbie
 
Registered: Jul 2015
Posts: 2

Rep: Reputation: Disabled
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
 
Old 07-13-2015, 03:38 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137
Quote:
Originally Posted by Cacara View Post
I have seen comments to delete the dmesg file.
Can someone tell me how to view it? Thanks
Run "dmesg"

You may also find the information in /var/log/messages useful.
 
Old 07-13-2015, 03:46 PM   #3
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: Oregon, USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,277
Blog Entries: 3

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
Quote:
Originally Posted by Cacara View Post
Can anyone tell me how to view messages showing
Dates and times when a USB device was used in RHEL 6.6?
Hi...

Welcome to the forum

If not located in "/var/log/messages," you can also try "/var/log/syslog." Please see answer "0" here.

Regards...
 
Old 07-13-2015, 03:59 PM   #4
Cacara
LQ Newbie
 
Registered: Jul 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
Run "dmesg"

You may also find the information in /var/log/messages useful.
Ok I was able to view dmesg.
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
 
Old 07-13-2015, 04:04 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137
/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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
deleting USB history Bips_linux Linux - General 7 04-07-2015 01:54 PM
Linux USB Device Drivers and Linux USB Device Side user space application ashwindeshpande Linux - Embedded & Single-board computer 3 12-12-2014 08:05 AM
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 08:32 AM
How to force kernel to use a USB 2.0-compatible device (ehci_hcd) as a USB 1.1 device eze Linux - Hardware 0 05-16-2006 06:24 AM
HP Deskjet (USB) & CUPS & Slackware 9.1: Unable to open USB device "usb:/dev/usb/lp0&qu arnostienen Slackware 2 01-29-2004 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration