LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   tar.gz not extracting (https://www.linuxquestions.org/questions/linux-networking-3/tar-gz-not-extracting-860419/)

gardenair 02-03-2011 03:56 AM

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

Aquarius_Girl 02-03-2011 04:39 AM

and what do you get when you run
Code:

file blablabla.tar.gz
?

b0uncer 02-03-2011 04:45 AM

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.

repo 02-03-2011 04:45 AM

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

Aquarius_Girl 02-03-2011 04:51 AM

ahh, yes, so first of all you should do:
Code:

locate blablabla.tar.gz

gardenair 02-03-2011 04:58 AM

thanks a lot for the guidance. Yes my problem is solve now.

repo 02-03-2011 05:05 AM

Quote:

Originally Posted by Anisha Kaul (Post 4246900)
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


All times are GMT -5. The time now is 11:22 AM.