System Management
An administrator wants to back up every file ending in .conf under /etc into a single cpio archive named /backup/conf.cpio. The list of files must come from a search of the directory tree. Which command does this?
Show the answer
Correct answerB. find /etc -name "*.conf" | cpio -o > /backup/conf.cpio
In copy-out mode (-o), cpio reads file names from standard input and writes the archive to standard output, so find supplies the list and the redirect saves the archive. Copy-in mode (-i) reads an existing archive from standard input to extract it, so it cannot create one.