Interactive Command line output in a file

Blog Post created by Patrick-Dussault Employee on Aug 30, 2017

If you need to catch all the output of an interactive command line in
a file, as to illustrate it, you can use the tee
command to do so :


# ./ -i console | tee output.txt


and the file output.txt will have all the output you have seen during
the execution of the command