How (and Why) to Log Your Entire Bash History

How (and Why) to Log Your Entire Bash History

For the last three and a half years, every single command I've run from the command line on my MacBook Pro has been logged to a set of log files. Uncompressed, these files take up 16 MB of disk space on my laptop. But the return I've gotten on that small investment is immense.

atomicobject.com

I can't tell you how many times I have asked myself, "What exactly did I do on this box again?" If I'd had my history properly logged, much time would have been saved. (also good as an auditing resource and to keep track of build/configure steps)