How to make history command to display time

Post Reply
a24uall
Site Admin
Posts: 166
Joined: Sun Jul 01, 2012 9:07 am

How to make history command to display time

Post by a24uall »

export HISTTIMEFORMAT="%Y%m%d %H:%M:%S "
After the above command history will how the date and time of commands untill the current shell is closed.
Arun
WebhostingDevelopment.com
Post Reply

Return to “Basic Commands”