Redirecting command output


Redirect command output to a file:
ls *.png > image_files
Append command output to an existing file:
ls *.jpg >> image_files
Redirect command output to the input of another command: cat *.log | grep error
Was this answer helpful? 0 Users Found This Useful (0 Votes)