The correct statement regarding the command 'foo 1> bar' is that the stdout from the command 'foo' overwrites the file 'bar'. Option B is the correct answer.
In Bash, the '>' symbol is used to redirect output from a command to a file. The number '1' specifies the standard output file descriptor. Therefore, the command 'foo 1> bar' redirects the standard output of the command 'foo' to the file 'bar', overwriting the file if it already exists.
The other statements are not correct:
Option A: The stdout from the command 'foo' is not appended to the file 'bar'. It overwrites the file.
Option C: The command 'foo' does not receive its stdin from the file 'bar'.
Option D: The command 'foo' does not receive its stdin from the stdout of the command 'bar'.
Option E: The stderr from the command 'foo' is not saved to the file 'bar'. To redirect the stderr of a command to a file, you can use the command 'foo 2> bar'.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Buruguduystunstugudunstuy
6 months, 1 week agoBorbz
2 years, 2 months agoBorbz
2 years, 2 months ago