Showing posts with label history. Show all posts
Showing posts with label history. Show all posts

How To display Timestamp in History command



By default, the history command shows just the command number and the command.
it could be very useful to add a timestamp to be shown, this can help you to monitor things by the time you run something.

To add the timestamp you need to export the next command:
#  export HISTTIMEFORMAT='%F %T '

if you want, you can add this line to your profile, so next you boot your machine, it will run automatic:
just edit /etc/profile  and add the line above.

Best Regards
Read more >>