Yeah, you could redirect the output to a file by using something like your_command > output where output is the file location.
Note, that this will remove the output in your terminal.
In order to write to the file and to standard out you could use your_command 2>&1 | tee outfile.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more