[SOLVED] Unpacked tar No such file/directory error
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Hi, was wondering if someone could tell me what might be wrong with my centos installation, everytime I try to unpack a tar.gz file, it unpacks it but when I try to cd into that directory to install, it says No such file or directory.
Im trying to install powerdns webinterface and im using this command
tar zxvf powerdns-webinterface-1.5.3.tar.gz
then i try this
cd powerdns-webinterface
and I get -bash: cd: powerdns-webinterface: No such file or directory
I tried with tar -zxvf and a few other varients I found on the forum but I keep getting that error after the files been unpacked. Im using the root user so I should have permission, I can manually create a directory with mkdir
when I check it seems to have extracted the files to web directory, keeps doing this, so I tried installing Poweradmin and it creates the directory Poweradmin but when I try and cd into it it again says -bash: cd: poweradmin: No such file or directory and when I list all the files in the directory with
ls -F
it lists all files as tar.gz still :/ not unpacked.
Once check the content of the tar file as:-
tar -ztvf powerdns-webinterface-1.5.3.tar.gz
It will list all the content of tar file.
So then check if "powerdns-webinterface" dir. is existing there or not. Also check as it may have a different or little similar name to "powerdns-webinterface".
(Note: tar file contents will be extracted into the current dir.)
Thanks for the help, as knudfl said its cus the files are being extracted to web directory so I had to make a directory like knudfl said for it and extract the files in that directory as the powerdns directory isn't being created by default, which worked thanks very much.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.