Archiving Files with tar Flashcards

1
Q

Archiving files allows an entire directory structure to be…?

A

stored as a single file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Archives are created,listed, and extracted with the…?

A

tar command.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Archive files are often…?

A

compressed as well

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The _______ application provides a GUI interface to archiving files.

A

fileroller.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Often, if a directory and its underlying files are not going to be used for a while, or if the entire directory tree is going to be transferred from one place or another, people convert the directory tree into an…?

A

archive file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

he archive contains the directory and its…?

A

underlying files and subdirectories, packaged as a single file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In Linux (and Unix), the most common command for creating and extracting archives is the…/

A

tar command.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Originally, archive files provided a solution to …?

A

backing up disks to tape.

(When backing up a filesystem, the entire directory structure would be converted into a single file, which was written directly to a tape drive. The tar command derived its name from “t”ape “ar”chive.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

tar switch:
-c, –create
Effect:

A

Create an archive file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

tar switch:
-x, –extract
Effect:

A

Extract an archive file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

tar switch:
-t, –list
Effect:

A

List the contents of an archive file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Almost every invocation of the tar command must include the…?

A

-f command line switch and its argument, which specifies which archive file is being created, extracted, or listed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

you can extract the archive file in the /tmp directory, using…?

A

tar -x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Use the mutt command to ..>/

A

email archive as an attachment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The first command line switch to the tar command must be one of the special switches. Because the first switch is always one of a few choices, the tar command allows a shortcut; you do not need to include the….?

A

leading hyphen. Often, experienced users of tar will use shortened command lines.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Tar Switch:
-C, –directory=DIR
Effect:????

A

Change to directory DIR

17
Q

Tar Switch:
-P, –absolute-reference
Effect: ????

A

don’t strip leading / from filenames

18
Q

Tar Switch:
-v, –verbose
Effect: ????

A

list files processed

19
Q

Tar Switch:
-z, –gzip
Effect: ????

A

internally gzip archive

20
Q

Tar Switch:
-j, –bzip2
Effect: ????

A

internally bizp2 archive

21
Q

As a rule, archive files will always unpack locally, reducing the chance that you will unintentionally..?

A

clobber files in your filesystem by unpacking an archive on top of them.

22
Q

When constructing the archive, this behavior can be overridden with the …?

A

-P command line switch.

23
Q

When constructing an archive, the -C command line switch can be used to..?

A

help establish context by changing directory before the archive is constructed.