Extracting the contents of a tar archive
If you would like to extract all the files from a ``tarball'' (tar archive) file, made with a relative pathname, and with file compression turned on (as recommended in our procedure for building tarballs), use this procedure.
tar -xvzf filenameFor example, if you have a tarball file named rainpics.tgz, you would use this command to extract its contents:
tar -xvzf rainpics.tgz
After this procedure, the tarball will remain where you have placed it, and all the files within it will reside in or below the directory to which you extracted it.
In the example, if the rainpics.tgz tarball was made with relative pathname pics, the example command would put all of the extracted files at path /usr/meteor/data/pics and its subdirectories if any.
John Shipman, email@example.com
Last updated: 2006/12/19 01:13:48 UT