I do not know if this is even possible or not, but in an attempt to keep track of many changes I am about to make to my system I want to track all input I type and all output from a terminal I'm working with to a file. I've been messing around trying to do this and here is what I have so far:
bash > /tmp/output.txt
This has some quasi success. I tested this with something simple:
sudo apt-get update && sudo apt-get upgrade which dumped the normal output to the file, but not what I typed in.
Additionally I'd like to be able to see the output as well as have it stream to my output file, just for readability. (This can be worked around with a second terminal running
tail -f, but it'd be nice to have it in one place).