Ch12 Archive Commands Exam
-
By default,
tar
will attempt to extract an archive…- into the user’s home directory.
- to the specified directory.
- into the working directory.
- into the archive’s parent directory.
-
bzip2
archives are typically indicated with which file extension?- .bz2
- .b2
- .bz
- .gz
-
gzip
andbzip2
use the same compression algorithm. True or False?- True
- False
-
gzip
andbzip
are aliases for the same utility. True or False?- True
- False
-
It is not possible to recursively compress files within directories with
gzip
. True or False?- True
- False
-
The
cpio
command has four modes of operation. True or False?- True
- False
-
The
cpio
command will preserve metadata when copying files. True or False?- True
- False
-
The
dd
command can be used to copy entire partitions.- False
- True
-
The
dd
command can be used to create iso files. True or False?- True
- False
-
The
dd
command can be used to create large files the can be used as swap files. True or False?- True
- False
-
The
tar
command supports:- Both gzip and bzip2 compression
- gzip compression only
- bzip compression only
- only uncompressed archives
-
The
tar
command supports which of the following styles of option(s)? (choose three)- DOS
- GNU
- BSD
- Unix
-
The
unzip
command can be used without options to extract files from a zip archive. True or False?- True
- False
-
To decompress the archive
example.gz
, use the following command:gunzip -x example.gz
gzip -u example.gz
gunzip example.gz
gzip -x example.gz
-
By default the
gzip
command replaces uncompressed files with compressed files. True or False?- True
- False
-
When copying entire devices using the
dd
command, you must specify:- block size and count only
- input file and output file only
- input file, output file, block size and count
- input file, output file, and block count
-
Which archiving method is compatible across Linux, Microsoft Windows and Mac operating systems?
cpio
zip
tar
dd
-
Which of the following commands could be used to extract the archive,
example.tar
?tar -uz example.tar
tar -uf example.tar
tar -xf example.tar
tar -xz example.tar
-
Which of the following is not a valid argument for the
dd
command?of
bs
in
if
-
Which of the following options allows the
cpio
command to overwrite existing files?- -v
- -i
- -o
- -u
-
Which of the following options puts the
cpio
command in copy-out mode?- -o
- -i
- -u
- -v
-
Which of the following options puts the
cpio
command into copy-in mode?- -o
- -u
- -v
- -i
-
Which option to the
bzip2
command can be used for recursive compression?- -R
- bzip2 doesn’t support recursive compression
- -v
- -c
-
Which option to the
bzip2
command can be used to report the compression ratio of an archive?- -v
- -c
- -R
- -l
-
Which option to the
gzip
command can be used to retain the uncompressed files when creating an archive?- No option needed, gzip does this by default
- -c
- -F
- -R
-
Which option to the
unzip
command can be used to estimate the size of an archive when it is decompressed?- -l
- -R
- -F
- -c
-
Which option to the
zip
command can be used to recursively compress multiple directories?- -d
- -R
- -l
- -r
-
Which option to the
zip
command will list its files without uncompressing them?- -R
- -d
- -l
- -r
-
Which option to the
zip
command will list its files without uncompressing them?- -l
- -R
- -F
- -c
-
To view the contents of
foo.gz
without uncompressing it, use:gzip -i foo.gz
gunzip foo.gz
untar -u foo.gz
zcat foo.gz
-
The
bzcat
command prints the contents of .bz2
files to standard output: True or False?- True
- False
-
Which command will print the contents of
words.xz
to standard output?bzcat words.xz | words.txt
unxz words.xz > stdout
zcat words.xz
xzcat words.xz
-
bunzip2
andgunzip
use identical compression algorithms?- True
- False
-
Which command will uncompress the file
letters.txt.xz
?untar letters.txt.xz
letters.txt.xz > letters.txt
unxz letters.txt.xz
xz -b letters.txt.xz
Subscribe
0 Comments
Newest