16

I want to untar a package from one directory to another directory, directly from the command prompt. I want to untar the joomla package into the htdocs directory of xampp. How to do that directly from command prompt ? The reason i am asking this is if I try the "drag and drop" way, it won't be possible as xampp is stored in /opt directory and without super-user authentication nothing can be saved into it. You can argue saying that why did I untar xampp initially in su mode ,but that had to be done so that apache doesnt give me any start-up problems.

0

2 Answers 2

35

unpack tar.gz:


tar zxvf tarball.tar.gz -C destination_dir

unpack tar.bz2:


tar jxvf tarball.tar.bz2 -C destination_dir
1
  • Learn something new everyday reading answers. Jul 19, 2010 at 13:08
7
cd targetdir
tar xf pathtoarchive/archive.tar
1
  • This is my preferred method as I typically want to work on those files next. Jul 19, 2010 at 13:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .