Question: The difference between > and > > when used in an instruction for redirection is that Group of answer choices > and > > both

The difference between > and >> when used in an instruction for redirection is that
Group of answer choices
> and >> both create a file if the file does not exist but > overwrites a file and >> appends a file if the file does exist
> creates a file if it does not exist and overwrites a file if it already exists while >> appends to an existing file but causes an error if the file does not exist
there is no difference between them in Bash (there are differences in different shells)
> outputs one line to a file while >> outputs one or more lines to a file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!