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)- A5% (1)
- B11% (2)
- C79% (15)
- D5% (1)
Community Discussion
No community discussion yet for this question.