Home · Latest · Trends  /  general
1

Add time and date to bash history

rated 1 times [  1] [ 0]  / comments: 0 / hits: 161  / 6 months ago, thu, feb 23, 2017, 09:22:57
Add the following to /etc/bashrc for global, then re-login to see it.
export HISTTIMEFORMAT="%h %d %H:%M:%S "
More From » general
 

Comments

There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account
 
Share
Sponsor
Posted
rob

rob

Member since Feb 22, 2017
Total Code Snippets: 94
Total Comments: 1
Location: n/a
Following
User not following anyone yet.
rob snippets
6 months ago, wed, feb 22, 2017
6 months ago, wed, feb 22, 2017
6 months ago, wed, feb 22, 2017
6 months ago, wed, feb 22, 2017
6 months ago, wed, feb 22, 2017
6 months ago, wed, feb 22, 2017
6 months ago, wed, feb 22, 2017
6 months ago, wed, feb 22, 2017