Click here to Skip to main content
15,909,939 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I need to extract the tar file into one folder based on original name.
When I try this command, it shows this error;

VB
tar: mytesting201402070230: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors



My commands;

tar -cvzf mytesting201402070230.tar.gz mytesting201402070
Posted

1 solution

Used to work with Windows or even DOS, did you? :-)
If this is your current directory, may be tar -cvzf ./mytesting201402070230.tar.gz ./mytesting201402070? Can you see the difference?
—SA
 
Share this answer
 
v3
Comments
JennyChua 17-Feb-14 21:33pm    
I work in DOS actually

I still got the same error

tar: ./mytesting201402070230: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
Sergey Alexandrovich Kryukov 17-Feb-14 22:34pm    
DOS? Wow! And why do you think that tar is actually installed. If you have tar.exe, provide full path name to it...
—SA
JennyChua 17-Feb-14 23:12pm    
I just want to know how to create a folder based on original file name in tar.
Is it can use the common cp

cp mytesting.tar.gz mytesting.

wrong right?
Sergey Alexandrovich Kryukov 18-Feb-14 0:09am    
Again, are you using DOS or *NIX? All you say sounds like *NIX. Command interpreter like in *UNIX, or what?
—SA
JennyChua 18-Feb-14 1:42am    
Owhh...sorry..SA..my bad...yes...for *unix

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900