LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Tilde in filenames leading to issues extracting tar.gz (https://www.linuxquestions.org/questions/linux-newbie-8/tilde-in-filenames-leading-to-issues-extracting-tar-gz-4175527224/)

Proudrasil 12-03-2014 12:25 PM

Tilde in filenames leading to issues extracting tar.gz
 
So I'm a relatively new user, and I'm tasked with an extremely arbitrary and weird project of getting a Wind River client working on Hyper V, and I basically need to install some drivers on this little virtual terminal so it'll interface with Hyper V's virtual ethernet.

I got the drivers, and have them mounted via iso in my VM, however no command to extract them I'm doing is working out.

This is what I'm trying:

Code:

root@localhost:/mnt/cdrom# ls
e1000e~0.gz
root@localhost:/mnt/cdrom# tar zxf e1000e.3.1.0.2.tar.gz
tar: e1000e.3.1.0.2.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors

The name of the tar.gz is
Code:

e1000e.3.1.0.2.tar.gz
and I'm assuming the tilde thing is just an abbreviation, though I have no idea why it's returning cannot find file despite it being listed.

I'm thinking I might just be going about something incorrectly or misunderstanding the "~" so if anyone has any ideas I would really appreciate it!

Thanks

pan64 12-03-2014 12:33 PM

You can rename that file if you want to, or use it as is. Try tar xzf e10*.gz or similar. I hope that helps

Proudrasil 12-03-2014 01:04 PM

Quote:

Originally Posted by pan64 (Post 5278912)
You can rename that file if you want to, or use it as is. Try tar xzf e10*.gz or similar. I hope that helps

Yeah I've tried that, typing it with the tilde, and every variation that it might be misinterpretting it as (with extension, without, etc), still unable to find file.

pan64 12-03-2014 01:38 PM

would be nice to show what have you tried exactly. And also what was the respons, error message, whatever....
How was that cd mounted (what will the mount command say?)

smallpond 12-03-2014 01:45 PM

You don't have a tar file. You most likely have a gzip file with a tar.gz file inside it. You can check with the file command. You need to run gunzip to unpack the file.


All times are GMT -5. The time now is 10:13 AM.