nerdexam
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)
  • A
    16% (7)
  • B
    5% (2)
  • C
    70% (31)
  • D
    2% (1)
  • E
    7% (3)

Community Discussion

No community discussion yet for this question.

Full 117-102 Practice