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.
-
1