Показаны сообщения с ярлыком tar. Показать все сообщения
Показаны сообщения с ярлыком tar. Показать все сообщения

понедельник, 13 августа 2012 г.

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

Creating a tar gzipped archive using option cvzf The above tar cvf option, does not provide any compression. To use a gzip compression on the tar archive, use the z option as shown below.

$ tar cvzf archive_name.tar.gz dirname/
z – filter the archive through gzip