History with Time in Linux

Use the following command to set the time format.
HISTTIMEFORMAT="%d/%m/%y %T "
Then execute history command. This will display the command with executed time.
history

To make these changes permanent use the below command
echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bashrc
Reload
source ~/.bashrc
After this changed will be permanent.

Comments

Popular posts from this blog

How to install MRTG on UBUNTU

How to install Apache Tomcat in Ubuntu

How to mine cryptocurrency using unMineable