Hi All,
Can i get the history command with date, so that i can know which command run at what time???
need it on urjent basis
Thanks
Hi All,
Can i get the history command with date, so that i can know which command run at what time???
need it on urjent basis
Thanks
export HISTTIMEFORMAT="%h/%d - %H:%M:%S"
--ahamed
tried the above code as it is but not getting output
[user01@vm10 sbp]$ export HISTTIMEFORMAT="%h/%d - %H:%M:%S"
[user01@vm10 sbp]$
After that, you need to execute the history
command to see the history with time stamp!
If you need it always, better to add this in ~ /.profile
or any other appropriate place!
--ahamed
bash specific ! doesn't work whith ksh
Jean-Pierre.
Its showing me todays current date only..... not exact time at what the command is executed
That should show the date & time... Otherwise try this:
export HISTTIMEFORMAT='%F %T '
This is just mentioning about the history time format... You'll have to execute ''history'' command to see the output..