Is there an elegant way to log every command submitted in all shells on a machine? This is in the context of an infrequently-used Ubuntu server, of which I am the only human user. (There are several user accounts used by automated systems.)
I would like this to be unobtrusive and low-overhead, so I'd love it if there were a simple method involving something like script
.