nerdexam
CompTIA

LX0-102 · Question #535

Which of the following bash options will prevent an administrator from overwriting a file with a ">"?

The correct answer is C. set -o noclobber. See the full explanation below for the reasoning.

Question

Which of the following bash options will prevent an administrator from overwriting a file with a ">"?

Options

  • Aset -o safe
  • Bset -o noglob
  • Cset -o noclobber
  • Dset -o append
  • Eset -o nooverwrite

How the community answered

(42 responses)
  • A
    14% (6)
  • B
    2% (1)
  • C
    74% (31)
  • D
    7% (3)
  • E
    2% (1)

Community Discussion

No community discussion yet for this question.

Full LX0-102 Practice