Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 11-04-2012, 11:43 AM   #1
LQ Newbie
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
Unpacked tar No such file/directory error

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.

appreciate help please

Old 11-04-2012, 02:05 PM   #2
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
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.)
1 members found this post helpful.
Old 11-04-2012, 07:15 PM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Do a long listing
ls -l
lowercase L there...
Incidentally, Linux is case sensitive, so 'Poweradmin' is not equal to 'poweradmin'
Old 11-04-2012, 09:02 PM   #4
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
powerdns-webinterface-1.5.3.tar.gz probably unpacks to a directory called powerdns-webinterface-1.5.3
Old 11-05-2012, 03:51 AM   #5
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,755

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
powerdns-webinterface-1.5.3.tar.gz unpacks web/, etc. ( 10 files )
.. when you do 'tar xvf powerdns-webinterface-1.5.3.tar.gz'

Solution : mkdir powerdns-webinterface-1.5.3
cd powerdns-webinterface-1.5.3/
tar xvf powerdns-webinterface-1.5.3.tar.gz


Last edited by knudfl; 11-05-2012 at 03:53 AM.
1 members found this post helpful.
Old 11-05-2012, 05:47 PM   #6
LQ Newbie
Registered: Nov 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
0511-169 extracting tar file: A directory checksum error on media GoBieN AIX 9 07-14-2012 02:58 AM
abs error: core.abs.tar.gz no such file or directory Thaidog Arch 1 06-14-2011 11:20 PM
"Invalid tar magic" error msg. when I try to tar ldmud *.tar file in DSL pixxi451 Linux - Newbie 4 07-04-2010 09:32 AM
SOLVED: tar error message: Cannot open: No such file or directory qajaq Linux - Newbie 2 11-22-2009 12:25 PM
After .tar.gz files are unpacked what next? K Torode Mandriva 7 03-16-2007 08:21 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:30 AM.

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