How to Create Tar.BZ2

A "tar.bz2" file is an archive file that was created using the Linux and Unix "tar" command, and then compressed using the "bzip2" compression format. A tar archive was originally used to back up data to a tape device. It is now used as method for creating a single archive file that contains many other files. There is no compression involved in creating the tar file. The size of the archive equals the combined sizes of the files within it. The bzip2 format compresses the archive file so that it uses less hard drive space.

Instructions

    • 1

      Open a terminal or Konsole window, or log into the computer via an SSH session. The "Terminal" or "Konsole" programs can be found under the distribution's main programs menu or by right-clicking on the desktop.

    • 2

      Type the command "tar -cjf filename.tar.bz2 file1 file2 file3" to create an bzipped tar archive containing the files "file1," "file2" and "file3." You can add as many files to the end of the command as you want in the archive. Replace "filename" with the name you want to give the archive.

    • 3

      Type the command "tar -cjf filename.tar.bz2 dir/" to add the contents of a directory to the bzipped tar archive. Replace "filename" with the name you want to give the archive. Replace "dir/" with the directory that you want to add to the archive.

Related Searches:

References

Comments

You May Also Like

  • How to Unzip Tar.bz2

    “Tar” stands for a common type of archiving in the Linux operating system. The “tar” command allows a user to combine multiple...

  • How to Unzip a Tar Bz2 File

    Comments. You May Also Like. What Is the File Extension Bz2? File compressing and archiving are used to make files that are...

  • How to Unzip a Bz2 File

    BZip2 is a compression format for files that allows streaming files. This means you can actually transfer files from one location to...

  • How to Unzip Bzip2

    Bzip2 files are sometimes referred to as BZ2 files. These files are compressed archives and are typically implemented on UNIX-based platforms. Three...

Related Ads

Featured