Multiple choice technology operating systems

" ls >| output.log " will overwrite the ouput.log file if present

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The >| operator forces overwrite even if noclobber is set. This is a shell redirection operator that explicitly overwrites the target file regardless of its existing content or shell options.

AI explanation

The >| operator is bash's explicit 'clobber' redirection: it forces output.log to be overwritten even if the noclobber shell option is enabled, whereas a plain > would refuse to overwrite an existing file under noclobber. So the statement is True, not False.