Package to and Unpackag a .tar File
From Computing and Software Wiki
(Difference between revisions)
(Package to and Unpackag a .tar File) |
|||
Line 1: | Line 1: | ||
- | '''Package to and Unpackag a .tar File''' | + | |
+ | == '''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. | 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. |
Revision as of 17:37, 9 April 2007
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