As in title, I would like to log everything is displayed by the bash, that is the inputs and the relative outputs.

Let's say I would like an "history" for everything, not only input commands.

I would like the log to be stored in different file, having for example one file per session (from the opening of a shell to its termination).

Any ideas?

1 Answer 1


script utility is exactly what you need.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.