Question: What is the difference between > and >> > connects the output from one command to the input of another command >> only sends the
What is the difference between > and >>
| > connects the output from one command to the input of another command >> only sends the standard error from one command to another command | ||
| > redirects the output to a file, and creates a new file. It will overwrite the contents of the file if it already existis. >> will append the output to a file, and won't wipe out any existing content. | ||
| > redirects standard input >> redirects standard output | ||
| > and >> are both very similar, but >> is how you automatically redirect standard output to both the sceen and a file at the same time |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
