XK0-005 · Question #1543
XK0-005 Question #1543: Real Exam Question with Answer & Explanation
The correct answer is C: ls | cpio -ov > cloud.cpio. The command ls | cpio -ov > cloud.cpio can help to create a new cloud.cpio archive containing all the files from the current directory. The ls command lists the files in the current directory and outputs them to the standard output. The | operator pipes the output to the next com
Question
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?
Options
- Als | cpio -iv > cloud.epio
- Bls | cpio -iv < cloud.epio
- Cls | cpio -ov > cloud.cpio
- Dls cpio -ov < cloud.cpio
Explanation
The command ls | cpio -ov > cloud.cpio can help to create a new cloud.cpio archive containing all the files from the current directory. The ls command lists the files in the current directory and outputs them to the standard output. The | operator pipes the output to the next command. The cpio command is a tool for creating and extracting compressed archives. The -o option creates a new archive and the -v option shows the verbose output. The > operator redirects the output to the cloud.cpio file. This command will create a new cloud.cpio archive with all the files from the current directory.
Topics
Community Discussion
No community discussion yet for this question.