LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-03-2011, 03:56 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Rep: Reputation: 45
tar.gz not extracting


I have downloaded a tar.gz file in my home direcrory.when I try to extract the file it show following erroe message.

Code:
[root@localhost home]#tar xvf blablabla.tar.gz
tar (child): blablabla.tar.gz:cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar  child returned status 2
tar: Error exit delayed from previos error
[root@localhost home]#
Kindly guide me.
garden
 
Old 02-03-2011, 04:39 AM   #2
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,720
Blog Entries: 29

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
and what do you get when you run
Code:
file blablabla.tar.gz
?
 
Old 02-03-2011, 04:45 AM   #3
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
1) verify that the file exists in the working directory
Code:
ls *.gz
2) make sure you wrote the filename correctly; try to ensure that it doesn't contain any characters that might either not print (well/at all) or may confuse your shell (characters that need to be escaped); to play safe, enclose the filename in double quotes, or use tab-completion (if available) which ensures you get it right.

3) make sure you have a "clean" command line, i.e., that there are no non-printing characters already typed when you start typing the command. I face quite often this problem when working on ssh between different machines, that sometimes the command line shows nothing (looks empty) but really contains some character(s) that simply do not print. In this case they mess up the commands typed in. To be clear, press Enter a couple of times to get a clean line.
 
Old 02-03-2011, 04:45 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
tar (child): blablabla.tar.gz:cannot open: No such file or directory
Te file is not where you think it is (your /home) directory
what is the output from
Code:
ls
Kind regards
 
1 members found this post helpful.
Old 02-03-2011, 04:51 AM   #5
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,720
Blog Entries: 29

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
ahh, yes, so first of all you should do:
Code:
locate blablabla.tar.gz
 
Old 02-03-2011, 04:58 AM   #6
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
thanks a lot for the guidance. Yes my problem is solve now.
 
Old 02-03-2011, 05:05 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Originally Posted by Anisha Kaul View Post
ahh, yes, so first of all you should do:
Code:
locate blablabla.tar.gz
This only works if the database is updated, using updatedb, after the file was downloaded.
Better to use
Code:
find /home/user -name blablabla.tar.gz[
Kind regards
 
  


Reply


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
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 11:02 AM
extracting tgz.tar abhipro Linux - Newbie 8 10-30-2009 04:29 PM
After extracting a tar...is tar useless? glenn69 Linux - Newbie 6 04-23-2004 09:04 PM
Extracting multivolume tar Cichlid Linux - Software 3 12-21-2003 01:54 AM
extracting -filename.tar.gz- zokter Linux - Newbie 3 06-29-2003 06:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:45 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