1829638 Members
1687 Online
109992 Solutions
New Discussion

history

 
Ragni Singh
Super Advisor

history

In bash, for a users history, can you tell what time a command was executed? Or is there a way to tell when a command was executed?I know a command was executed but I want to know what time? I didn't see the message in system log.
2 REPLIES 2
CSG Office
Frequent Advisor

Re: history

You would have to have auditing enabled. If it wasn't auditing at the time the command was run, there isn't any way to go back to retrieve that.
Ivan Ferreira
Honored Contributor

Re: history

The HISTORY won't tell you that, you need to enable auditing and use the lastcomm command to review entries.

A nice tool for C2 style auditing is SNARE:

http://www.intersectalliance.com/projects/Snare/
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?