LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 08: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, 08:54 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
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, 08:57 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 3,950

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 08:59 AM.
 
Old 04-05-2005, 04: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, 05: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


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


All times are GMT -5. The time now is 01:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration