I'd like to redirect all input and output to a file, so I can keep a record of a given 'command session'.
I know that I can redirect a single command with:
command > file.txt
, or use the TEE command. I don't want that. I want ALL input and output written to file, regardless of what other redirection is in place (and perhaps even in addition to other redirection).
Is there a way to do this?