Thursday, November 21, 2013

Unarchive and decompress .tar.bz2 and .tar.gz (Ubuntu 12.04)

Archived and compressed files can be unarchived and decompressed with tar:
tar -xjvf targetfile.tar.bz2

tar -xzvf targetfile.tar.gz
Archived files can be unarchived with tar:
tar -xvf targetfile.tar
Compressed files can be decompressed with bunzip2 or gunzip:
bunzip2 targetfile.bz2

gunzip targetfile.gz

No comments:

Post a Comment