LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 04-05-2005, 07:51 AM   #1
Rodotheos
LQ Newbie
 
Registered: Apr 2005
Location: Greece
Distribution: openSuSE 10.3
Posts: 25

Rep: Reputation: 15
unziping bz2 files


Hi, I'm trying to unzip a file with a bz2 extension using the following command that I found in a magazine...

tar xvf --bzip2 filename.bz2

but I always get ...

tar: --bzip2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

How can I manage such zipped files?

Thank you in advance.
Rodo
 
Old 04-05-2005, 07:54 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Two ways to 'unzip' these:

bunzip2 filename.bz2
or
tar xjf filename.bz2

One thing about the last one: Not all tar version support the -j flag.

Hope this helps.
 
Old 04-05-2005, 07:57 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Wrong place of the option . After the -xvf with "f" like file the filename is expected ... could be more flexible, but...

Try
Code:
tar --bzip2 xvf filename.bz2

and of course

man tar  

since there is a further option for bzip2 without the two"--"
which I don't remember just now

Last edited by JZL240I-U; 04-05-2005 at 07:59 AM.
 
Old 04-05-2005, 03:50 PM   #4
Rodotheos
LQ Newbie
 
Registered: Apr 2005
Location: Greece
Distribution: openSuSE 10.3
Posts: 25

Original Poster
Rep: Reputation: 15
Thank you guys.
It worked with the bunzip2.
If I use tar --bzip2 xvf filename.bz2 I get an error saying that requires onother parameter (I think it is the j one).
Anyway, thanks again.
 
Old 04-05-2005, 04:17 PM   #5
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by Rodotheos
Thank you guys.
It worked with the bunzip2.
If I use tar --bzip2 xvf filename.bz2 I get an error saying that requires onother parameter (I think it is the j one).
Anyway, thanks again.
Use:
tar jxvf file.tar.bz2
instead.
 
  


Reply



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
viewing bz2 files ilnli Linux - General 5 11-14-2005 03:26 PM
.bz2 files Mr. Hill Linux - Newbie 4 03-13-2005 04:19 AM
Opening/Unziping .tar.gz files java999 Linux - Software 5 09-25-2004 11:17 AM
How can konqueror view html files in .gz & .bz2 files directly? ailinzhe Linux - Software 5 05-24-2004 08:36 AM
unzipping files using bz2 bruce64 Linux - Software 6 07-17-2003 02:51 PM

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

All times are GMT -5. The time now is 06:42 PM.

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