An easy way to do this is start a “script” session using a nifty program called script.
It basically puts you in a virtual terminal and records everything you type and the corresponding output.

script -a /home/user/bashlog.txt

Then just type exit when you want to stop logging.

Blog Logo

Mario Loria


Published

Image

./scriptthe.net

Because 127.0.0.1 gets old after a while.

Back to Overview