I would like to log every command typed into bash (by either root or user) as well as every file operation.
The idea is that I could write tools that could interrogate this log file and provide very useful information.
For example it would be great to list all commands ever typed, one per line, with "- - -" for 8-24h time gap and "= = = e.g. 24 June 2014 = = =" for >24h gap. If it also eliminated duplicates within a "= = =..." session even better!
That would mean that whenever I accomplish some task such as "upgrade flask/mod_wsgi/apache to Python 3.x" a record is left behind, a trail I can pick up if I have to do the same thing six months later.
To the same end it would be very nice to see what file system changes occurred after installing a particular package. That would let me know where the config files got put.
PS I'm on Ubuntu 14.04