1 Answer
Use the following command to set the date and time
echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bash_profile
Then run the following command to set the environment
source ~/.bash_profile
Now run the command
history
1 12/12/19 17:21:34 cd
2 12/12/19 17:21:34 add-apt-repository ppa:openshot.developers/ppa
3 12/12/19 17:21:34 ping google.com
4 12/12/19 17:21:34 ip a
5 12/12/19 17:21:34 systemctl restart network
Your Answer
x