Question
1. [ BACKUP.cpio] Which of the following statement about CPIO is correct? cpios name is derived from the phrase copy in and out, it compresses
1. [BACKUP.cpio] Which of the following statement about CPIO is correct?
cpios name is derived from the phrase copy in and out, it compresses the file, and the resulting archives are compressed.
Cpio reads file and directory path names from its standard input and writes the resulting archive byte stream to its standard output.
the resulting cpio archive is a sequence of files and directories concatenated into multiple archive.
the file name of an archive is usually given the file extension gz
2. [BACKUP.cpio] Suppose your current directory is /bin, you want to put all commands starting with d to an archive file under your home directory (suppose it is /home/CSI3660).
To achieve this goal,your command should be like:
$ find d* | cpio i > /home/CSI3660/archive.cpio
$ find d* | cpio o > /home/CSI3660/archive.cpio
$ find d* | cpo > /home/CSI3660/archive
$ find d* | cpio o > /home/CSI3660/archive.gz
3. [BACKUP.cpio] In the scenario of above question, suppose you want to read the archive from its standard input and recreate the archived files under your home directory, the command should be:
cpio ov < archive.cpio
cp iv < archive.cpio
cpio iv < archive
cpio iv < archive.cpio
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started