There are so many ways to extract zip or tar.gz or tar.bz2. You can use GUI or command line. In this tutorial, I would like to show you how to extract compressed files using command line.
Extract zip file:
unzip file_name.zip
Extract tar.gz file:
tar -xzf file_name.tar.gz
or
tar -xvzf file_name.tar.gz
Extract tar.bz2 file:
tar -xjf file_name.tar.bz2
or
tar -xvjf file_name.tar.bz2
Notice in tar command, there is -v parameter. It tells the application to show the extracted files (verbose).
Those are the standard way to extract. If you need more functionality, just use man command.
man unzip
man tar
Related posts:








Leave a Reply