LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-17-2009, 08:39 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,374

Rep: Reputation: Disabled
Why can't I untar from inside folder where the tarbell is?


While trying to compile and install the latest Pidgin, I had a problem trying to "tar xjvf" the package.
I entered "tar xjvf" and pasted the package into the command by dragging it from where it was (my home folder). It didn't work, saying "no such file..." Eventually, I figured out that the problem was that I was currently in my home folder, and trying to untar the package from there. (So I solved it by leaving my home folder before unpacking.) Apparently, unpacking a package from inside the folder that contains it is not allowed. Why not?
 
Old 07-17-2009, 08:51 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
To extract into the current directory use tar -xvvf for .tar files and tar -xvvzf for .tar.gz files.
 
Old 07-17-2009, 08:57 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I have no clue what is going on here....

You say that you enter "tar xjvf" and then drag something???? Why? How?

To unpack an archive, simply go to the directory where it is and type "tar <options> filename" For long messy filename, use *

Suppose I want to unpack "cleverprogram_version_38.9.6.578_Beta.tar.gz": I can probably simply do: "tar -xzvf clever*"
 
Old 07-17-2009, 09:49 PM   #4
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,374

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pixellany View Post
I have no clue what is going on here....

You say that you enter "tar xjvf" and then drag something???? Why? How?

To unpack an archive, simply go to the directory where it is and type "tar <options> filename" For long messy filename, use *

Suppose I want to unpack "cleverprogram_version_38.9.6.578_Beta.tar.gz": I can probably simply do: "tar -xzvf clever*"
I must have been unclear; my apologies. I typed "tar xjvf" and then dragged the package from an open Konqueror window into the terminal, which pasted the name in.
 
Old 07-17-2009, 09:52 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
That's great--assuming that the package was in the right place.

Why not do the simple thing? CD to the directory where the package is and then unpack it.
 
Old 07-17-2009, 10:54 PM   #6
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,374

Original Poster
Rep: Reputation: Disabled
I'm not sure, but probably because the first time I ever did any unpacking, that was the first way to do it that I figured out; and I am a substantial creature of habit.

Last edited by newbiesforever; 07-17-2009 at 11:02 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
untar to a specific folder kennmurrah Linux - General 4 05-22-2010 06:06 AM
How to create a "fixed-space"-a folder that is EXT2 inside and whatever size-50MB? linus72 Linux - Newbie 3 04-08-2009 08:47 AM
Virtual Box. Removing a shared folder inside virtual xp. glore2002 Linux - Software 2 05-20-2007 11:12 AM
iptables inside client to inside host with outside DNS or IP - Help! linuxhelp2 Linux - Networking 1 10-15-2005 06:19 AM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 02:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration