Adding Date And Time To Your Bash History
Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Adding Date And Time To Your Bash HistoryThis is a quick but handy addon (RedHat/CentOS) to enhance your bash history (bash > 3.0). It comes in handy particularly if there are multiple people maintaining a given server (so you can see when a command was performed) or even if you are the sole maintainer, but can't remember exactly when you did or changed something. Edit your /etc/bashrc and append to the bottom: export HISTTIMEFORMAT="%h/%d - %H:%M:%S " From next login instead of: 574 tail -f /var/log/maillog you get: 1002 Apr/30 - 11:46:16 grep duncan /var/log/maillog Hope this helps someone;)
|
Sponsored Links:
Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning







Recent comments
13 hours 57 min ago
15 hours 58 min ago
19 hours 10 min ago
21 hours 29 min ago
22 hours 39 min ago
23 hours 57 min ago
1 day 4 hours ago
1 day 7 hours ago
1 day 7 hours ago
1 day 22 hours ago