How to decompress tar.bz2 in Cent OS/Linux?

Linux OS Topics
Post Reply
User avatar
Saman
Lieutenant Colonel
Lieutenant Colonel
Posts: 828
Joined: Fri Jul 31, 2009 10:32 pm
Location: Mount Lavinia

How to decompress tar.bz2 in Cent OS/Linux?

Post by Saman » Thu Mar 22, 2012 1:48 am

Open a terminal and type:

Code: Select all

tar xvjf filename.tar.bz2
Which will untar it to the current directory. Normally it will create it's own subdirectory so you don't need to worry about that.
Just so you know:
tar - Tape ARchiver
And the options:
x - extract
v - verbose output (lists all files as they are extracted)
j - deal with bzipped file
f - read from a file, rather than a tape device

"tar --help" will give you more options and info
Post Reply

Return to “Linux”