0

When extracting archive files using the terminal, you will find out that each archive format has its own command syntax to be able to extract it. For example, zipped files need to be extracted using the "unzip" command line tool, tar files need the "TAR" command, for 7z files, you need the "p7zip" package to be able to extract them, and so on.

If you find all the various commands used to extract archive files under Ubuntu difficult to memorize, you can simply use a single command to help you extract the various archive formats from the terminal. This universal archive extracting tool is called ATOOL. To install it under Ubuntu 12.04 or older, run the following command:

sudo apt-get install atool

Using the cd command, go the the destination folder containing your archive file (7z, tar.gz, zip, etc.) and run the following command:

atool -x filename.ext

Example:

atool -x gimp.tar.gz

If you prefer to extract the archive file in another folder path, use the following command:

atool -X /path/to/folder/ filename.ext

Example:

atool -X /usr/bin/  gimp.tar.gz

For more parameters, run this command:

atool --help

That's it!

Post a Comment

 
Top