tar help
Mitch Contla
mcontla at gmail.com
Thu May 3 21:40:11 UTC 2007
On 5/3/07, Kit Goins <kompukit at gmail.com> wrote:
>
> it's
>
> tar -xvf collection.tar
>
> thats it...nothing more...this will unpack the
> archive in the present directory
>
>
>
> On 5/3/07, User Iam <vramnum10 at gmail.com> wrote:
>
> > Hi
> >
> > can't seem to get this right..
> >
> > Need to untar a file and put it in a directory in root /
> >
> > SO it is tar -xvf some.tar ????
> >
> >
> > TIA
> >
> > User Iam
> > <https://lists.ubuntu.com/mailman/listinfo/ubuntu-users>
> >
>
> <-- snip --> <https://lists.ubuntu.com/mailman/listinfo/ubuntu-users>
>
>
You can use the -C option to change directory prior to untar, this way you
don't have to first navigate to the target directory, like this:
# tar -xvf some.tar -C /
Of course if you are not root, you need to use sudo.
man tar is a great thing. :)
--
Mitch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070503/d0d0b164/attachment.html>
More information about the ubuntu-users
mailing list