[royce@royce-desktop ~]$ cat /etc/profile.d/history.sh export HISTSIZE=100000 export HISTTIMEFORMAT="[%F %T] " [royce@royce-desktop ~]$ history |tail -n 2 74519 [2015-01-22 10:52:40] cat /etc/profile.d/history.sh 74520 [2015-01-22 10:52:41] history |tail -n 2
Thursday, 22 January 2015
Better shell history for power users.
One of the very first things I set up on any new OS install is my history. I like to keep a lot of it and I like to know when I ran the command. This is very easy to do with these two environment variables set in your profile. You can set them locally or globally.
Labels:
BASH
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment