To create a new archive with cpio, which of the following commands would you use, given that you have a list of files to archive from a file called 'filelist.txt'?
The command cpio -ov < filelist.txt > archive.cpio is correct for creating a new archive named archive.cpio using the list of files contained in filelist.txt. The -o option is used with cpio to specify that files are being copied out into an archive, and the -v option is for verbose output, listing files as they are archived.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the `-o` option in `cpio` do?
Open an interactive chat with Bash
What is the purpose of the `-v` option in `cpio`?
Open an interactive chat with Bash
How does the `< filelist.txt` syntax work in the `cpio` command?