Save any command output to file | Redirection | DOS

Using re-directional operator ‘>’ & ‘>>’ commands output is written in a file instead of displaying it on the screen.
Syntax – command > filename
Single re-directional operator ‘>’ creates a new file or over writes the existing file.
Single re-directional operator ‘>>’ appends/adds the content at the end of the existing file or creates and writes if file not present.

Leave a Reply

Your email address will not be published. Required fields are marked *