3.1 Archiving Files on the Command Line Flashcards
Archive
decompresses bzip2 file
bunzip2
Archive
output contents of a bzip compressed file
bzcat
Archive
compress files using bzip2 algorithm format
bzip2
Archive
Decompress a gzip compressed file
gunzip
Archive
compresses files using gzip algorithm and format
gzip
Archive
create, update list and extract tar archives
tar
Archive
decompress an xz compressed file
unxz
Archive
decompress and extract content from zip file
unzip
Archive
compress files using the zz algorithm and format
xz
Archive
output contents of gzip compressed file
zcat
Archive
creates and compresses zip archives
zip
Archive
according to the extensions what tools used to create file
archive.tar
tar
Archive
according to the extensions what tools used to create file
archive.tgz
tar
gzip
Archive
according to the extensions what tools used to create file
archive.tar.xz
tar
xz
Archive
What is the status are the file extensions
file.tar
archive
Archive
What is the status are the file extensions
file.tar.bz2
archive
compressed
Archive
What is the status are the file extensions
file.zip
archive
compressed
Archive
What is the status are the file extensions
file.zx
compressed
Archive
tar option instructs tar to include the leading / in absolute paths
-P
Archive
Does zip support different compression levels
use -#, replacing # with a number from 0-9
Archive
When extracting files, does tar support globs in the file list?
Yes, you would use the –wildcards option. –wildcards must be placed right after the tar
file when using the no dash style of options
Archive
How can you make sure a decompressed file is identical to the file before it was compressed?
You don’t need to do anything with the tools covered in this lesson. All three of them include
checksums in their file format that is verified when they are decompressed.
Archive
What happens if you try to extract a file from a tar archive that already exists on your
filesystem?
The file on your filesystem is overwritten with the version that is in the tar file
Archive
How would you extract the file archive.tgz without using the tar z option?
decompress it with gunzip first.