336 B
336 B
101
Get time and date for History commands
HISTTIMEFORMAT='%Y-%m-%d %T "
history
make it permanent:
nano ~/.bashrc
search for `HISTCONTROL' and under it enter:
HISTTIMEFORMAT='%Y-%m-%d %T "
save and should now be permanent