Learn all about it in this article and more!

What istarand How Do I Install it?

It supports many features, including compressing and decompressing files on the fly when archiving them.

Terminal window showing the manual page for the Mutt email client on Linux

Let’s have a look at the options used in this command.

Next we have the-cand-foptions.

Note that they are just written together with the-in-h, i.e.

Four hard drivers sticking out of a rack-mount server that’s being used as a NAS.

instead of specifying another-, we simply tag them onto the other shorthand options.

The-coption stand forcreate a new archive.

Note that by default directories are archived recursively, unless a –no-recursion option is also used.

Article image

Shutterstock/iunewind

The-foption allows us to specify the name of the archive.

As you might see, the tar file is much larger then all of our files combined.

The files are simply being archived and some overall overhead fortaris being added.

Setting up sample data to compress

Gaining More Bytes Using High Level Compression

Can we make the file even smaller?

Still, thebzip2andxzalgorithms may show improvements with other data sets.

Simple uncompressed tar archive creation

Shorthand options that require an option cannot be placed at front

Using file to see the file type

Looking at the size of a compressed archive vs an uncompressed one

Using the -I option to tar to specify a compression program

bzip -9 compression program example

xz -9e compression program example

Decompression a compressed (or uncompressed) tar archive