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
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
3
Q
Give a command line that lists the contents of the archive named report.tar
A
tar -lf report.tar
4
Q
Give a command line that extracts the contents of the archive named report.tar
A
tar -xf report.tar
5
Q
What does the tar command’s –v option do?
A
verbose list files processed
6
Q
Do you have to precede the tar command’s options with a dash?
A
No
7
Q
What does it mean if a file has a .tar.gz extension?
A
Comppression file