Ch12 Archive Commands Exam

  1. 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.
  2. bzip2 archives are typically indicated with which file extension?

    • .bz2
    • .b2
    • .bz
    • .gz
  3. gzip and bzip2 use the same compression algorithm. True or False?

    • True
    • False
  4. gzip and bzip are aliases for the same utility. True or False?

    • True
    • False
  5. It is not possible to recursively compress files within directories with gzip. True or False?

    • True
    • False
  6. The cpio command has four modes of operation. True or False?

    • True
    • False
  7. The cpio command will preserve metadata when copying files. True or False?

    • True
    • False
  8. The dd command can be used to copy entire partitions.

    • False
    • True
  9. The dd command can be used to create iso files. True or False?

    • True
    • False
  10. The dd command can be used to create large files the can be used as swap files. True or False?

    • True
    • False
  11. The tar command supports:

    • Both gzip and bzip2 compression
    • gzip compression only
    • bzip compression only
    • only uncompressed archives
  12. The tar command supports which of the following styles of option(s)? (choose three)

    • DOS
    • GNU
    • BSD
    • Unix
  13. The unzip command can be used without options to extract files from a zip archive. True or False?

    • True
    • False
  14. 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
  15. By default the gzip command replaces uncompressed files with compressed files. True or False?

    • True
    • False
  16. 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
  17. Which archiving method is compatible across Linux, Microsoft Windows and Mac operating systems?

    • cpio
    • zip
    • tar
    • dd
  18. 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
  19. Which of the following is not a valid argument for the dd command?

    • of
    • bs
    • in
    • if
  20. Which of the following options allows the cpio command to overwrite existing files?

    • -v
    • -i
    • -o
    • -u
  21. Which of the following options puts the cpio command in copy-out mode?

    • -o
    • -i
    • -u
    • -v
  22. Which of the following options puts the cpio command into copy-in mode?

    • -o
    • -u
    • -v
    • -i
  23. Which option to the bzip2 command can be used for recursive compression?

    • -R
    • bzip2 doesn’t support recursive compression
    • -v
    • -c
  24. Which option to the bzip2 command can be used to report the compression ratio of an archive?

    • -v
    • -c
    • -R
    • -l
  25. 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
  26. Which option to the unzip command can be used to estimate the size of an archive when it is decompressed?

    • -l
    • -R
    • -F
    • -c
  27. Which option to the zip command can be used to recursively compress multiple directories?

    • -d
    • -R
    • -l
    • -r
  28. Which option to the zip command will list its files without uncompressing them?

    • -R
    • -d
    • -l
    • -r
  29. Which option to the zip command will list its files without uncompressing them?

    • -l
    • -R
    • -F
    • -c
  30. 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
  31. The bzcat command prints the contents of .bz2 files to standard output: True or False?

    • True
    • False
  32. 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
  33. bunzip2 and gunzip use identical compression algorithms?

    • True
    • False
  34. 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
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments