NixUser | Unix User | Linux User | NixUser

How to see time stamps in bash history?

Enter the following command in terminal.


Or, to make the change permanent for the current user:

echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bashrc
source ~/.bashrc

Now try the history command, you will see the timestamp along with the command history.

%d bloggers like this: