"On Unix platform, tar command is the primary archiving utility.
Understanding various tar command options will help you master the
archive file manipulation.
"In this article, let us review various tar examples including
how to create tar archives (with gzip and bzip compression),
extract a single file or directory, view tar archive contents,
validate the integrity of tar archives, finding out the difference
between tar archive and file system, estimate the size of the tar
archives before creating it etc.,
"1. Creating an archive using tar command
"Creating an uncompressed tar archive using option cvf
"This is the basic command to create a tar archive.
$ tar cvf archive_name.tar dirname/
"In the above command:
* c – create a new archive
* v – verbosely list files which are processed.
* f – following is the archive file name
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.