How to Enable Timestamp In Linux History Command


Enable timestamp in Linux History command

The Bash history feature is an invaluable tool which allows users to recall commands previously entered into their shell with relative ease. This makes it easy to enter repeated commands and keep track of what was done on a system.
Applicable versions of Bash provide the environment variable HISTTIMEFORMAT which you can set for this purpose.

Enable time stamp on your bash history type following command on your terminal :

$ export HISTTIMEFORMAT="%F %T "

How to Enable Timestamp In Linux History Command How to Enable Timestamp In Linux History Command Reviewed by vivek sathisan on 11:34 Rating: 5

No comments:

© Copyright to vivek sathisan. Powered by Blogger.