How do I save the output of a command to a file?
Is there a way without using any software? I would like to know how.
command line
How do I save the output of a command to a file?
Is there a way without using any software? I would like to know how.
Best Answer
Yes it is possible, just redirect the output (AKA
stdout
) to a file:Or if you want to append data:
If you want
stderr
as well use this:or this to append:
if you want to have both
stderr
and output displayed on the console and in a file use this:(If you want the output only, drop the
2
above)