LPI
117-102 · Question #32
What BASH environment variable will prevent you from overwriting a file with a ">" or ">>"?
The correct answer is C. set -o noclobber. See the full explanation below for the reasoning.
Question
What BASH environment variable will prevent you from overwriting a file with a ">" or ">>"?
Options
- Aset -o safe
- Bset -o noglob
- Cset -o noclobber
- Dset -o append
- Eset -o nooverwrite
How the community answered
(44 responses)- A16% (7)
- B5% (2)
- C70% (31)
- D2% (1)
- E7% (3)
Community Discussion
No community discussion yet for this question.