On Sun, 2005-01-09 at 14:53 -0800, Peter Gordon wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Joseph wrote:
> | Is there a way to untar content of a file to a different folder?
> |
> Try using the '-C <directory>' option:
> $ tar -xzf /path/to/archive.tar.gz -C /where/to/unpack
> 
> Hope that helps!

This is like redirecting the content of the archive to specific folder.
What I wanted to do is to suppress/overwrite the extracted directory
name to my own name.

Example if I do:
$ tar -xzf archive.tar.gz -C my_folder
I get:
/my_folder/archive

What I wanted to change is the name of the original folder to different
one; example from: archive to archive-temp to the content would not
generate "archive" but "archive-temp"
archive-temp/

Though I'm not sure it this can be done.

-- 
#Joseph

--
[email protected] mailing list

Reply via email to