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.