How To Open .TBZ ( tar.bz2 ) File Under Linux / UNIX

by Vivek Gite on April 6, 2008 · 2 comments

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.

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 2 comments… read them below or add one }

1 SIFE November 19, 2009

Salamo Alikom
thx ,this help to extract FreeBSD package .

Reply

2 Unceus August 4, 2011

Thanks, very helpful.

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 7 + 13 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: