Results 1 to 2 of 2
When I do the command it shows what commands were issued..that's good
BUT
I need to know or would like to see a date/time stamp on them. Is that possible??
...
- 12-14-2006 #1Linux Newbie
- Join Date
- Jun 2006
- Posts
- 139
History command
When I do the command it shows what commands were issued..that's good
BUT
I need to know or would like to see a date/time stamp on them. Is that possible??
thanks
Mace
- 12-18-2006 #2Linux User
- Join Date
- Jun 2006
- Posts
- 311
Set HISTTIMEFORMAT
Hi Mace,
Of course. If you want to see timestamp also for the history command, set the shell variable HISTTIMEFORMAT to 1 and the time stamp information associated with the command will also get written into the history file, which by default is $HOME/.bash_history for Bash and can be changed by modifying the shell variable HISTFILE.I need to know or would like to see a date/time stamp on them. Is that possible??
With Regards,
Thinker


Reply With Quote