Q. I've download ed .tbz file. How do I open .tbz file under Linux / UNIX operating system using a shell prompt or GUI application?
A. This is a tarball. A .tar or .tbz or .tgz file is commonly referred to as a Tarball, which is usually compressed to save disk space. Use tar command to open .tbz file.
First, open a terminal or shell prompt.
Extracts all files from a compressed Tar file of the name test.tbz or test.tar.bz2(bzipped file).
$ tar -xjf test.tbz
To extract to a specific folder called /tmp/test, use:
$ tar -xjf test.tbz -C /tmp/test
To view extracted file, use:
$ cd /tmp/test
$ ls -l
GUI tool 7-ZIP
7-Zip is a file archiver with the high compression ratio. The program supports 7z, ZIP, CAB, RAR, ARJ, LZH, CHM, GZIP, BZIP2, Z, TAR, CPIO, ISO, MSI, WIM, NSIS, RPM and DEB formats. It is a open source cross-platform file archiver, supports creation and extraction of Tar archives.
You can download 7-Zip here online.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop














{ 4 comments… read them below or add one }
Salamo Alikom
thx ,this help to extract FreeBSD package .
Thanks, very helpful.
You can do it this way as well. It also works for Solaris.
bzip2 -cd files.tar.bz2 | tar xvf -
don;t mention the name of god. Thanks for this post. This is for SIFE