Friday, 23 October 2009

Extract zip files in Unix-like environment

To extract a tar.bz2 file, use the command (note the j option)

Code:
tar -jxvf filename.tar.bz2
To extract a tar.gz file, the the command (note the z option)

Code:
tar -zxvf filename.tar.gz

No comments: