The Ultimate Tar Command Tutorial with 10 Practical Examples
Apr 27, 2010, 15:03 (0 Talkback[s])
WEBINAR: On-demand webcast
How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017 REGISTER >
"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