[CentOS] tar and gunzip help
Bowie Bailey
Bowie_Bailey at BUC.com
Fri Aug 21 19:22:25 UTC 2009
ML wrote:
> HI All,
>
> I have a directory tree that when the user un-gzips/untars it does
> into /opt by default.
>
> The directory tree is like:
>
> ugui
> |
> |-- <misc files>
> |-- source
> |-----framework
> |------ <misc files>
>
> so when unzipped I want to end it with /opt/ugui and all the stuff
> below it.
>
I'm not sure what you are asking here. If you cd to /tmp and untar the
file, what does it do?
> How do I do this? Can I also issue one command that will unzip and
> untar the archive at the same time? (I know I can, I just cant get it
> right)
>
You can unzip and untar with "tar xzf filename" with a recent version of
tar.
--
Bowie
More information about the CentOS
mailing list