tar Archives

How to unTAR a .bz2 file in Linux

I always forget how to unTAR a .bz2 file – perhaps this little memory aid will help me remember for the future. tar -xjvf filename.bz2 This will do the trick 🙂 The key to the magic is to provide the j switch, which tells the TAR command to use bzip2 compression.

How to extract files from a bz2 archive in Linux

If you’ve ever tried to decompress a file that ends in tar.bz2 using the tar command with the standard -x option, you’ll have noticed that it doesn’t work. That’s because some versions of tar don’t understand the bzip2 codec used in these archives. However, you can tell tar to use this option by specifying the … Read more