LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-22-2013, 01:57 AM   #1
robot79
LQ Newbie
 
Registered: Jan 2013
Posts: 1

Rep: Reputation: Disabled
How can I find the last time a particular USB device was connected?


I'm trying to piece together when I last used a USB flash drive which I've lost. If I can find when I last had it, it may help point to where I should be searching. Thanks!
 
Old 01-22-2013, 04:22 AM   #2
tsester
Member
 
Registered: Dec 2011
Distribution: Gentoo
Posts: 47

Rep: Reputation: 2
depending on your OS, you can grep something from either /var/log/syslog or /var/log/messages or through journalctl.
to see older messages, check for /var/log/syslog.1 or /var/log/messages.1 or /var/log/syslog.1.gz or...
type
Code:
ls /var/log/
to see all these logs

to read a log you can use
Code:
less
(if the log ends with .gz you can use
Code:
zless
) . in there, type '/' to enter a search string. in there, type '-i' to change case (in)sensitive search.

at all times, you can use
Code:
man less
 
  


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
How to know which usb port usb device is connected to? jbsp72 Linux - General 23 03-17-2014 08:44 AM
how to find ipaddress of the device connected with system in ubuntu bskumar7080 Linux - Newbie 17 03-26-2010 07:09 AM
USB Device connected to PCI express not working on mpc8641d upakul Linux - Kernel 0 01-20-2009 11:11 PM
Howto find what device is connected to given switchport creatorrr Linux - Networking 6 12-17-2007 09:36 PM
cannot find usb port of my connected printer kpachopoulos Debian 1 08-10-2006 07:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:35 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
Open Source Consulting | Domain Registration