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?
C. ls | cpio -ov > cloud.cpio
The cpio command is used to create and extract archive files in the cpio format. The -o option is used to create an archive file, and the -v option provides verbose output during the creation process. This will pipe the output of the ls command (which lists the files in the current directory) into the cpio command, which will create a new archive file cloud.cpio containing all the listed files. The > symbol is used to redirect the output of the cpio command to the cloud.cpio file, overwriting any existing file with the same name.
C is correct, STDOUT from ls (current directory) into the -ov (create archive and display files processed by cpio) and redirecting into the filename name cloud.cpio
upvoted 3 times
...
This section is not available anymore. Please use the main Exam Page.XK0-005 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
linux_admin
Highly Voted 8 months, 4 weeks agoCkl22
Most Recent 10 months, 2 weeks ago