[kwlug-disc] bash: HISTTIMEFORMAT
CrankyOldBugger
crankyoldbugger at gmail.com
Wed Mar 4 08:35:14 EST 2026
Nice one!
On Wed, 4 Mar 2026 at 03:11, Chris Frey <cdfrey at foursquare.net> wrote:
> It turns out that by setting the environment variable HISTTIMEFORMAT
> on startup to something like "%Y-%m-%dT%T " bash will both display
> the timestamp of all commands when you use the 'history' command,
> but also store the timestamps in the .bash_history file.
>
> Now I have an automatic trail of timed breadcrumbs in case I need it,
> for all my shell work.
>
> Just passing along the tip.
>
> - Chris
>
>
> _______________________________________________
> kwlug-disc mailing list
> To unsubscribe, send an email to kwlug-disc-leave at kwlug.org
> with the subject "unsubscribe", or email
> kwlug-disc-owner at kwlug.org to contact a human being.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20260304/43ff9445/attachment.htm>
More information about the kwlug-disc
mailing list