CompTIA Linux+ (XK0-005) — Question 105

A Linux administrator needs to create a new cloud.cpio archive containing all the files from the current directory. Which of the following commands can help to accomplish this task?

Answer options

Correct answer: C

Explanation

The correct command is C, as it uses 'cpio -ov' to create an output archive from the list of files provided by 'ls', directing the output to 'cloud.cpio'. Options A and B misconfigure the command by trying to use input options incorrectly, while option D has a syntax error as it lacks a proper pipe or redirection.