public
Created

Linux better command history

  • Download Gist
gistfile1.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12
# better command line history: more commands kept, add timestamp
# www.fduran.com
 
# add in /etc/profile
 
HISTSIZE=10000
HISTTIMEFORMAT="%d/%h - %H:%M:%S "
 
# see 'date' formats for other timestamp formats
 
# test after logging in:
history |less

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.