Chapter 12: Archive Commands

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

The tar command is also able to compress using xz directly using the __ option:

-J ex:tar -cJf

The bzip2 command also has an option __ to send the data to standard output, so it can be redirected to a new file:

-c

To avoid replacing the original version of a file when using gzip, use the ___ option.

-c

The cpio command will not create directories unless the ___ option is used.

-d

Only the file ___ and the list ___ option are required to view the table of contents.

-f and -t

To extract the files that are in a cpio archive, use the __ option with the cpio command to specify copy-in mode.

-i

To use bzip2 compression, use the __ option.

-j

To view the amount of compression of an existing archived file, use the __ option with gunzip

-l

To view the contents of a zip file without unpacking it, use unzip to view the list of its files with the __ option:

-l

The __ and __ options to the gunzip command can be used to view the ratio of compression of the archived file to the original file.

-l and -v

Allows the zip command to recursively compress multiple directories into a single file.

-r

Use the ___ option to the tar command to view a list (table of contents) of a tar file.

-t

By default, cpio will not overwrite existing files unless the -__ option is used.

-u

The ___ verbose option will cause the tar command to display the files that are being included in the archive

-v

To view the table of contents of the archive in a format similar to a long listing use...

-v

Using the __ option will cause bzip2 to report the compression ratio after it has finished.

-v

The __ _______ option is used to show the activity of the cpio command in the terminal.

-v verbose

To extract the files from the tar file, use the ___ option.

-x

To use gzip compression with the tar command, use the ___ option.

-z

Using the__ option, xz can be used to compress a group of files individually.

-z

When a new compressed file is created from an existing file with the bzip2 command, the ____ extension is added to the file name.

.bz2

File extensions are not relevant to Linux, but it is customary to add _____ to the name of the compressed archive:

.tar.gz

The destination file (of zip) will automatically have a ____ extension added to it, if an extension is not specified. Also, the original files will not be replaced.

.zip

A device file that typically refers to the first DVD drive on the system.

/dev/dvd

A device file that typically refers to the first hard drive on the system.

/dev/sda

A device file that typically refers to the second hard drive on the system.

/dev/sdb

Remember to capture the output of the gzip command and redirect it into a file use the ___ character:

>

Archive

a single file, which consists of many files, though not necessarily compressed.

The tar command is typically used to make ________ within Linux.

archives

bzip2 cannot be used to ________ a nested directory structure.

compress

In _____-__ mode the cpio command will copy files from a directory into an archive into a directory.

copy-in

In ____-___ mode, the cpio command will copy files from a directory into an archive.

copy-out

tar -c

create

The tar command accepts all three styles of options including... (x, -x, --extract)

creating, viewing and extracting archives.

The tar command provides three main functions - ________, ________, and________ archives.

creating, viewing, and extracting

The __ command is a utility for copying files or entire partitions at the bit level.

dd

Use the what command and argument to see the block size to be used. By default, the value is considered to be in bytes. Use the following suffixes to specify other units: K, M, G, and T for kilobytes, megabytes, gigabytes and terabytes.

dd bs

Use the what command and argument to see the number of blocks to read from the input file.

dd count

Use the what command and argument to input file to be read.

dd if

Use the what command and argument to output the file to be written.

dd of

Use the unzip command without options to ______ a zip archive

extract

The ____ command is a good way to generate the list of files to be sent to cpio.

find

To view the amount of compression on the archived file as you are uncompressing the file, execute the following command

gunzip -v words.gz (words is the file for the module)

The command is used to create a compressed archive file.

gzip

To use the gzip command recursively on the specific directory, it would be successful in replacing regular files with ____ archive files:

gzip

The gunzip command ________ what gzip does

reverses

tar -f

specify a new file

Tar is derived from the words...

tape archive

The primary function of ___ is to merge multiple files into a single file.

tar

tar -cf

to create a tar archive

The _____ command is used to extract the files from the zip archive file.

unzip

To list the contents of the myperl.zip file without unzipping it, execute the following command:

unzip -l myperl.zip

To gzip or gunzip a file within a directory, a user must have _____ and _______ permission on a directory as well as ____ permission on the file.

write, execute, and read

The -d option can be used to uncompress the files just as easily.

xz -d

The ___ command is very useful for creating archives that can easily be shared across multiple operating systems.

zip


संबंधित स्टडी सेट्स

Tenacity - describes the minerals reaction to stress.

View Set

Unit 6 Progress Check: MCQ Part B (AP STATS)

View Set

Unit 26 FL Laws & Rules Pertinent to Life & Health Insurance

View Set

Chapter 1; Linear Equations: Sections 1.4 - 1.5 (VIVI)

View Set

Social Policy and Professional Ethics

View Set

MIS Chapter 3: Database Systems, Data Warehouses and Data Marts

View Set