History with Time and Date
The command history will give you the list of command which you executed earlier. By default you won’t get the the command execution time and date.
If you wish to have a history details with time and date please do the following.
Open /etc/bashrc file and add the following line.
Export HISTTIMEFORMAT=”%h%d - %H:%M:%S”
After adding this line, relogin to the shell and execute the history command.
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
2 Responses:
June 24th, 2009 at 2:45 am
Pretty cool post. I just found your blog and wanted to say
that I have really enjoyed browsing your posts. In any case
I’ll be subscribing to your blog and I hope you post again soon!
July 1st, 2010 at 7:30 pm
Awesome article. Do you have anymore information you might write about on this?