Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-03-2009, 03:42 AM   #1
Registered: Aug 2009
Posts: 118

Rep: Reputation: 15
command time

can i find at what time a command executed in linux.
i go through history.please help me out that
Old 10-03-2009, 04:22 AM   #2
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
If you have bash and have HISTTIMEFORMAT set, you can 'history | grep command'. Otherwise, I dunno.
Old 10-03-2009, 02:39 PM   #3
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 121

Rep: Reputation: 27
IF the command was run as an ordinary user using sudo,
AND you are running a system logger,
you can find it in the /var/log/messages file


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
time command returns too much of system time pvouzis Linux - General 6 08-24-2009 02:35 AM
URGENT! Is there any command to get a history command lines and time in SUSE Linux.? igsoper Linux - Software 5 06-25-2009 03:14 AM
what is the command 'time'? buuchanh Linux - Newbie 3 10-13-2005 02:46 PM
time command krock923 Programming 11 07-09-2005 05:46 PM
time command twantrd Linux - General 3 12-08-2004 04:54 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:34 PM.

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