LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-08-2008, 11:33 PM   #1
elsheepo
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Slackware
Posts: 90

Rep: Reputation: 20
uncompressing files?


i have this file here, that i would like to uncompress
ktorrent-3.0.0.tar.bz2.gz.bz2

but for some reason
tar -zxvpf ktorrent-3.0.0.tar.bz2.gz.bz2
dosent work. any sudjestions?
 
Old 03-08-2008, 11:52 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
The z option doesn't work for bz2 compressed files; it's does work with gz compressed files. So, to unpack a bz2 archive, you need to add the -j or the --bunzip2 flag:
tar -jxvf <filename>tar.bz2
tar --bunzip2 -xvf <filename>.tar.bz2

or, unpack the file in two steps:
bunzi2 <filename>.tar.bz2
tar -xvf <filename>.tar

For more on tar, see the man pages.

Last edited by bigrigdriver; 03-08-2008 at 11:57 PM.
 
  


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
compressing / uncompressing a files over 2GB in RH AS 3.0 on ext3 hitesh_linux Red Hat 1 03-08-2008 03:07 AM
uncompressing Linux at boot linuxhippy Slackware 7 03-12-2005 08:38 AM
Uncompressing MS-Backup files in Linux Mathieu Linux - Enterprise 0 08-02-2004 03:57 PM
Uncompressing LeeRobson Linux - Software 3 10-11-2003 07:49 PM
uncompressing document .Z GtkUser Linux - General 12 10-31-2002 12:40 PM

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

All times are GMT -5. The time now is 04:01 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