nerdexam
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)
  • A
    81% (35)
  • B
    5% (2)
  • D
    12% (5)
  • E
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 117-102 Practice