Package to and Unpackag a .tar File

From Computing and Software Wiki

Revision as of 16:25, 9 April 2007 by 130.113.68.49 (Talk)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Package to and Unpackag a .tar File

The Unix utility tar allowing users to coalesce many files into a single file. This is especially useful when users want to transfer or distribute their files. The archive file created by tar usually indicated by the extension of .tar.

To pack files of directories into a single file, do the following:

    tar  -cvf NewFile.tar file1  file2  file3 ....

This will package file1, file2, file3 and other files in the file list into a single file: NewFile.tar.

To extract files from a .tar file, do the following:

    tar  -xvf NewFile.tar
Personal tools