472 B
472 B
101
Get Time and Date for History command
Send:
HISTTIMEFORMAT='%Y-%m-%d %T " && history
Or make it permanent:
nano ~/.bashrc
search for HISTCONTROL
and under it enter:
HISTTIMEFORMAT='%Y-%m-%d %T "
save and should now be permanent