Pages

Monday, June 25, 2012

Date and time of run commands in history

how i can get the real time when the command has been executed and not the logout time ?


Add following line in .bashrc file or .bashrc_logon


HISTTIMEFORMAT="%h-%d-%Y - %H:%M:%S "

No comments:

Post a Comment