LinuxHelps.com

A blog for Linux Lovers.

20
Jun 2009
History with Time and Date.
Posted in Linux Helps by sibu at 12:58 pm |

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.

3 Responses:

adi said:

nice info bro.that will be nice if you want to see my blog. maybe we can share about computer. just check my linkthank you:)


Mary said:

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!


Jeff said:

Awesome article. Do you have anymore information you might write about on this?


Leave a Reply