Linux - NewbieThis 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!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You used "tar -zxvf" for the second command. the 'z' option tells tar to use gzip to uncompress the file. Since you already uncompressed it in the first command, gzip doesn't know what to do with it, and it consequently croaks. Tar stops because gzip encountered a problem. So, with the file you have now, you would extract it with: tar -xvf xxxxxx.x.x.tar
I would go back and re-gzip the tar file though (to save space): gzip xxxxxx.x.x.tar
tar -zxvf xxxxxx.x.x.tar.gz
Thanks for your replies to fabio_listas' question, they helped me too I will try them and see if they work for me.
However my question relates to a related yet different thing.
Dark Helmet said:
tar -zxvf file.tar.gz
and IBall said
tar -xzvf file.tar.gz
I would like to know whether the order of instructions is important or whether the command has a differnet meaning depending on the combination of the letters.
Nope. The order of options on the command line doesn't matter. Don't think of them as "instructions" per se, but as switches. You're telling the program how to operate; not giving it an explicit sequence of steps to take.
The examples above are equivalent to:
Code:
tar -z -x -v -f filename.tar
The only thing that you must do is specify the filename immediately after the "f" option; that is a requirement of the option itself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.