LPI
117-102 · Question #421
What command with options will cause the redirection symbol (>) to fail to overwrite the contents of an existing file?
The correct answer is A. Set -o noclobber. See the full explanation below for the reasoning.
Question
What command with options will cause the redirection symbol (>) to fail to overwrite the contents of an existing file?
Options
- ASet -o noclobber
- Bset +o nooverwrite
- Cexport OVERWRITE=no
- Dalias >='!>'
- ENone of the choices
How the community answered
(43 responses)- A81% (35)
- B5% (2)
- D12% (5)
- E2% (1)
Community Discussion
No community discussion yet for this question.