Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
08-23-2003, 09:39 AM
|
#1
|
Member
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255
Rep:
|
bz and gz
What is the difference between bz and gz. I downloaded files with these extenstion .tar.bz2 or .tar.gz etc.
How to unzip/untar both of these?
|
|
|
08-23-2003, 09:43 AM
|
#2
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
.tar.gz = tar xvzf filename.tar.gz
.tar.bz2 = tar xvjf filename.tar.bz2
Bzip2 compressed files tend to be smaller, which is nice if you are on a slow connection. If you've got the bzip2 app installed, you should look for those as often as possible.
HTH
Cool
|
|
|
08-23-2003, 09:50 AM
|
#3
|
Member
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255
Original Poster
Rep:
|
So its mean both are tar files. and to untar bz2 I will have to give the following command,
tar -xjf filename.tar.bz2
Secondly I want to know that why we use "-" before xjf?
|
|
|
08-23-2003, 09:53 AM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
You don't have to. It's a delimiter, or option, to the tar command. When giving options to applications, in linux, it's supplied as -options. This is likely to decipher between another command and options to the aforementioned command.
But with tar, you don't have to:
tar xvjf
will work just as:
tar -xvjf
does.
Both are tarballs that are further compressed with either gzip compression or bzip2.
Cool
|
|
|
08-23-2003, 11:54 AM
|
#5
|
Senior Member
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679
Rep:
|
To extend the MasterC comment on the subject:
the dash (-) is used more as a convention and for compatibility with other UNIXes and is the standard of POSIX OS's. On the other hand GNU supports long options as in --help (preceded with a double dash)
Cheers!
|
|
|
All times are GMT -5. The time now is 11:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|