nerdexam
CompTIA

XK0-001 · Question #74

An administrator needs to append the list of files in the /tmp directory to the existing file "DoNotCreateBackup". What command would accomplish this goal?

The correct answer is C. ls /tmp >> DoNotCreateBackup. See the full explanation below for the reasoning.

Question

An administrator needs to append the list of files in the /tmp directory to the existing file "DoNotCreateBackup". What command would accomplish this goal?

Options

  • Als /tmp || DoNotCreateBackup
  • Bls /tmp && DoNotCreateBackup
  • Cls /tmp >> DoNotCreateBackup
  • Dls /tmp :: DoNotCreateBackup

How the community answered

(19 responses)
  • A
    5% (1)
  • B
    11% (2)
  • C
    79% (15)
  • D
    5% (1)

Community Discussion

No community discussion yet for this question.

Full XK0-001 Practice