How to extract .bz2 file in Linux?

linuxDownloaded a .bz2 file at my linux box, and looking to extract .bz2 file. In Mac, i just need to double click on .bz2 file and it will extract automatically. With no GUI, i need to look for some command to extract .bz2 file in my Linux box.

To extract .bz2 file in Linux, follow the steps below:-


  • Go to terminal and enter command below to extract .bz2 file:-
    $ bunzip2 myfile.bz2
  • If you have .tar.bz2 file then you can use the command below to extract the file:-
    tar xjvf myfile.tar.bz2

Share this with your friends:-

Leave a Reply