Archiving Data
Another archive program, cpio
, is sometimes used in Linux. It’s similar in principle to tar
, but different in operational details. A file-archiving tool collects a group of files into a single “package” file that you can easily move around on a single system; back up to a recordable DVD, USB flash drive, or other removable media; or transfer across a network. Linux supports several archiving commands, the most prominent being tar
and zip
. In addition to understanding these commands, you should be familiar with the consequences of using compression with them.
Using tar
The tar
program’s name stands for tape archiver. Regardless of its name, you can use tar
to back up (also called archive) data to your hard disk or other media, not just to tapes. The tar
program is a popular tool used to archive various data files into a single file, called an archive file (the original files remain on your disk). Because the resulting archive file can be quite...