Tar

GNU is Article description::an archiver tool that provides the ability to create tar archives, as well as various other kinds of manipulation. The three most used functions are storage, backup and transportation. Five more advanced operations are: --append, --update, --concatenate, --delete and --compare. In addition, tar supports many kinds of compression, among others: gzip, bzip2, lzip, lzma, lzop, xz, and gz.

Emerge
After adjusting USE flags:

Environment variables
displays by default the short tar option summary. This summary is organized by groups. The exact visual representation of the help output is configurable via ARGP_HELP_FMT environment variable. For more information please refer to GNU's tar manual

help
Most of the tar operations and options can be written in any of three forms: long, short and old style.

Creation
or

Listing
or

Extraction
or

Some useful options are:


 * : for or.
 * : for or.
 * : for or.

Additional options

 * To specify the name of an archive:

or


 * For showing the files being worked on as tar is running:

or

For additional information refer to Official documentation

Compression
There are many ways to create a compressed tar file, also known as a 'tarball'. The best one may be:

or

This option will select the compression program based on the suffix of the archive file name. For example:

This command will produce a bz2 tarball, while:

will produce a lzma tarball.

Additional information
Because of the wide variety of tar's options, it is not possible to cover all the advanced features of this program with a single wiki entry. Some of the more advanced features include:


 * Adding files to existing archives;
 * Updating an archive;
 * Specifying options with ;
 * Backing up and restoring files;
 * Excluding some files; and
 * Crossing file system boundaries.

This information and more is available in the GNU tar manual

External resources

 * GNU tar: an archiver tool (official).