Why can't I untar from inside folder where the tarbell is?
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.