LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   uncompressing files? (https://www.linuxquestions.org/questions/linux-newbie-8/uncompressing-files-626722/)

elsheepo 03-08-2008 11:33 PM

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?

bigrigdriver 03-08-2008 11:52 PM

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.


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