Forum Moderators: bakedjake

Message Too Old, No Replies

Untarring in Command Line Interface

         

mdurrant

12:53 am on May 12, 2004 (gmt 0)

10+ Year Member



Hi, I'm no linux command line expert, I'd just like to know how to untar a file from one directory, into another.

IE:

/home/something/html/archive.tar.gz

I want to tar -xvzf this archive into

/home/something/html/somethingelse/thisdirectory

Thanks

jamie

11:36 am on May 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi mdurrant,

you need to use the -C switch

tar -zxvf mytararchive.tar.gz -C /path/to/some/directory

mdurrant

12:19 pm on May 12, 2004 (gmt 0)

10+ Year Member



Thanks :P That's what I needed