News for hackers. Stuff that matters.
Re:How and Why to Log Your Bash History by ojjzhna on Thursday June 02, 2016 @10:08AM (#11822542)
I have bash script in my bash_profile to support separate history files named with tty, month and year (so separate files for each tty). It looks for recent history files for the given tty and reloads old history on first startup.

Have cron job to signal bash session to flush history with command timestamps/dates to disk daily.

Handy for recalling commands/command switches you ran months ago.

There are no comments on this comment yet.