Archiving Files with tar Flashcards
Archiving files allows an entire directory structure to be…?
stored as a single file.
Archives are created,listed, and extracted with the…?
tar command.
Archive files are often…?
compressed as well
The _______ application provides a GUI interface to archiving files.
fileroller.
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…?
archive file.
he archive contains the directory and its…?
underlying files and subdirectories, packaged as a single file.
In Linux (and Unix), the most common command for creating and extracting archives is the…/
tar command.
Originally, archive files provided a solution to …?
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.)
tar switch:
-c, –create
Effect:
Create an archive file.
tar switch:
-x, –extract
Effect:
Extract an archive file.
tar switch:
-t, –list
Effect:
List the contents of an archive file.
Almost every invocation of the tar command must include the…?
-f command line switch and its argument, which specifies which archive file is being created, extracted, or listed.
you can extract the archive file in the /tmp directory, using…?
tar -x
Use the mutt command to ..>/
email archive as an attachment.
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….?
leading hyphen. Often, experienced users of tar will use shortened command lines.