Workbook 5: The Linux Filesystem: Chapter 7: Archiving Files with tar Flashcards

1
Q

What option must you almost always use with the tar command?

A

first command line must be selected from the following choices -c create or -x extract -t list

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

Using tar, give the command line that archives a directory named report and that names the
archive report.tar

A

tar -cf report report.tar

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

Give a command line that lists the contents of the archive named report.tar

A

tar -lf report.tar

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

Give a command line that extracts the contents of the archive named report.tar

A

tar -xf report.tar

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

What does the tar command’s –v option do?

A

verbose list files processed

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

Do you have to precede the tar command’s options with a dash?

A

No

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

What does it mean if a file has a .tar.gz extension?

A

Comppression file

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