Jump to content

tar.bz2

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
Hektor

Hektor

    Programmer

  • Members
  • PipPipPipPip
  • 126 posts
ok, so tar -zxvf doesn't unzip a tar.bz2. I figured that out. So how do I unzip this monster?

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
For .tar.bz2
tar -xjvf <filename>.tar.bz2

For just .bz2 files use:
bunzip2 <filename>.bz2


#3
Hektor

Hektor

    Programmer

  • Members
  • PipPipPipPip
  • 126 posts
Works perfect. How do I zip with bz2 now?

#4
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Just replace the "x" with a "c". X means extract and C means compress.

tar -cjvf <filename>.tar.bz2 <dir>


#5
Guest_powerspike_*

Guest_powerspike_*
  • Guests
ok so you know what the options do (feed a man a fish, teach a man to fish .. you know the saying !)
j = bzip
z = gz
c = create
x = extract
v = verbose (it prints the files to the screen)
f = i'm not use, i just know to always use it lol (i think this creates the tar for compression?)

also you can only use c or x , not both at the same time.

#6
Hektor

Hektor

    Programmer

  • Members
  • PipPipPipPip
  • 126 posts
lol, thx guys.

#7
Guest_powerspike_*

Guest_powerspike_*
  • Guests
no worries Hektor, hopefully you found the information providied usefull.