LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 10-14-2003, 12:47 AM   #1
mjkramer
Member
 
Registered: Sep 2003
Location: Orem, Ut
Distribution: Mandrake-9
Posts: 48

Rep: Reputation: 15
extracting .bz2 files


So, how does one extract .bz2 files?
 
Old 10-14-2003, 01:11 AM   #2
rahulsundaram
Member
 
Registered: May 2003
Location: India
Distribution: Knoppix, RedHat
Posts: 246

Rep: Reputation: 30
tar jxvf packagename.tar.bz2

for .gz files

tar cxvf packagename.tar.gz


regards
rahul sundaram
 
Old 10-14-2003, 04:23 AM   #3
miknight
Member
 
Registered: Oct 2002
Location: Sydney, Australia
Distribution: Gentoo, Ubuntu, Debian
Posts: 184

Rep: Reputation: 30
Quote:
Originally posted by rahulsundaram

for .gz files

tar cxvf packagename.tar.gz
Umm, I'm pretty sure that for tar.gz files you go

tar zxvf packagename.tar.gz

See 'tar --help' for more info.

Also it's useful to remember that what you're actually doing is decompressing the tar file, and THEN unpacking the tar file.

If you see a file like readme.txt.bz2 then it's probably a text file that has been bzipped (not packed into a tar file). So in this case you decompress the file by going

bzip2 -d readme.txt.bz2 which will leave you with readme.txt (readme.txt.bz2 will be gone).
 
Old 10-14-2003, 05:14 AM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Yeah. The -c switch is for creating a tar archive.
 
Old 10-16-2003, 10:23 PM   #5
rahulsundaram
Member
 
Registered: May 2003
Location: India
Distribution: Knoppix, RedHat
Posts: 246

Rep: Reputation: 30
hi

oops i goofed up sorry

regards
rahul sundaram
 
  


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
Extracting tar.bz2 archive through console grim_chel Linux - Newbie 3 06-28-2004 12:27 PM
How can konqueror view html files in .gz & .bz2 files directly? ailinzhe Linux - Software 5 05-24-2004 09:36 AM
extracting tar.bz2.gz files crank Linux - Newbie 5 04-19-2004 12:33 AM
extracting .gz files MACSRULE Linux - Newbie 2 04-13-2004 07:16 PM
Extracting files BriceM Linux - General 3 08-15-2003 04:00 PM


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