LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-17-2002, 08:57 PM   #1
Chooco
Member
 
Registered: May 2002
Location: Mexico
Distribution: Slackware
Posts: 118

Rep: Reputation: 15
what opens a .bz file?


i got a driver for my video card because some guy told me where to get it. it's a tar.bz but what the heck opens .bz? Linux without any extra downloaded stuff doesn't know what it is so what do i need to download to make this thing extract?
 
Old 06-17-2002, 09:34 PM   #2
Hitokiri_X
Member
 
Registered: Mar 2002
Distribution: Slackware Current
Posts: 99

Rep: Reputation: 15
bz stands for bzip.You probally need bzip or bunzip to extract it.
 
Old 06-17-2002, 10:14 PM   #3
jpweston
Member
 
Registered: Mar 2002
Location: Sacramento, CA
Distribution: Slackware 8.1; Debian 3.0
Posts: 222

Rep: Reputation: 30
You'll need to use bunzip2 or bzip2 -d to extract a .bz file. You can find all the information on this utility by running man bzip2.

j.

[edit]: Actually, those commands will just uncompress the file. You may need to use tar to do any "extracting" or "opening". If that's the case, the file will most likely have a .tar extension.

Last edited by jpweston; 06-17-2002 at 10:16 PM.
 
Old 06-17-2002, 10:21 PM   #4
sakeeb
Member
 
Registered: Apr 2002
Posts: 270

Rep: Reputation: 31
use "tar xjfv filename.tar.bz" to unzip you tar.bz file
 
Old 06-17-2002, 10:30 PM   #5
jpweston
Member
 
Registered: Mar 2002
Location: Sacramento, CA
Distribution: Slackware 8.1; Debian 3.0
Posts: 222

Rep: Reputation: 30
sakeeb,

What does the "j" option for tar do? I haven't see that before.

j.
 
Old 06-17-2002, 10:33 PM   #6
sakeeb
Member
 
Registered: Apr 2002
Posts: 270

Rep: Reputation: 31
if you want to unzip a tar.bz file use tar xjfv and for a tar.gz file use tar.xzfv
the j option tells tar to use bzip program to unzip while z option tell to use gzip

see info tar or man info more dtls

Last edited by sakeeb; 06-17-2002 at 10:34 PM.
 
Old 06-17-2002, 10:44 PM   #7
jpweston
Member
 
Registered: Mar 2002
Location: Sacramento, CA
Distribution: Slackware 8.1; Debian 3.0
Posts: 222

Rep: Reputation: 30
sakeeb,

I tried using the "j" option and got the following results:

Code:
jpweston@xxx:~/download$ tar -xjfv bluefish-0.7.tar.bz2
tar: invalid option -- j
Try `tar --help' for more information.
I checked the man pages for tar as you suggested and saw no mention of the -j flag. Is there a different version of the tar utility that uses this option?

j.
 
Old 06-17-2002, 11:02 PM   #8
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Rep: Reputation: 30
I use tar -xyf for bz2 and tar -xzf for gz
 
Old 06-17-2002, 11:12 PM   #9
jpweston
Member
 
Registered: Mar 2002
Location: Sacramento, CA
Distribution: Slackware 8.1; Debian 3.0
Posts: 222

Rep: Reputation: 30
lackluster,

Thanks. The "y" flag worked for me.

j.
 
Old 06-17-2002, 11:13 PM   #10
sakeeb
Member
 
Registered: Apr 2002
Posts: 270

Rep: Reputation: 31
Quote:
Originally posted by jpweston
Code:
jpweston@xxx:~/download$ tar -xjfv bluefish-0.7.tar.bz2
tar: invalid option -- j
Try `tar --help' for more information.
j.
u dont need to use '-' option just use

tar xjfv bluefish-0.7.tar.bz2
 
Old 06-17-2002, 11:21 PM   #11
jpweston
Member
 
Registered: Mar 2002
Location: Sacramento, CA
Distribution: Slackware 8.1; Debian 3.0
Posts: 222

Rep: Reputation: 30
sakeeb,

Still no luck with the "j".

Code:
jpweston@xxx:~/download$ tar xjfv bluefish-0.7.tar.bz2
tar: invalid option -- j
Try `tar --help' for more information.
The "y" option lackluster posted worked out ok and I do see it in the man page for tar.

j.
 
Old 06-17-2002, 11:23 PM   #12
jpweston
Member
 
Registered: Mar 2002
Location: Sacramento, CA
Distribution: Slackware 8.1; Debian 3.0
Posts: 222

Rep: Reputation: 30
sakeeb,

I just checked the man page for tar on my Red Hat 7.3 box and there is a listing for the "j" flag. So, it looks like Slackware 8.0 has an older(?) version of tar?

So, either "j" or "y" seems to do the trick depending on your version/distro.

j.
 
Old 06-18-2002, 12:39 AM   #13
sakeeb
Member
 
Registered: Apr 2002
Posts: 270

Rep: Reputation: 31
i just verified j option

created a tar.bz file using

tar cjf sakfile.tar.bz sak
rm sak

and untared it using

tar xjf sakfile.tar.bz
 
Old 06-18-2002, 09:23 AM   #14
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Doing man tar shows me a -j flag for bzip2 with tar version 1.13.25. "tar --version" will show you what version you have installed.
 
Old 06-18-2002, 09:53 AM   #15
llama_meme
Member
 
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
This will work with most versions i think

tar --use-compress-program bzip2 -xf [filename.tar.bz2]

Alex
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
opens pico but aint opening file user specifys? twirl Programming 66 09-14-2005 11:01 AM
How to Create an executable file in linux which opens by double-clicking it shivanand Linux - General 5 08-30-2005 12:10 AM
Mozilla opens URL as local tmp file? phlyersphan Linux - Software 1 11-08-2004 01:24 PM
trying to download PDF file -- it always OPENS 1kyle Linux - Software 1 07-24-2004 05:34 AM
Anyone know why my browser opens when..... BajaNick Linux - General 1 08-18-2003 06:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration