Linux utility-dtrx automatically decompress the package as needed

Source: Internet
Author: User

When I visited the website, I saw a good command tool, dtrx.

The types that this tool can extract includeTar,Zip,Rpm,Deb,Gem,7z,Cpio,RarAnd so on. The tool can automatically identify the compressed package type and decompress the package.

In addition, the formula is very convenient, as shown in the following:

Dtrx/XXX/compressed file .tar

This command will automatically decompress all content to the folder where the .tar file is located.

First install this command in the Debian/Ubuntu/Mint system:

Sudo apt-get install dtrx

In Red Hat systems such as RHEL, CentOS, and Fedora (installation must be performed under the root user identity ):

# wget http://brettcsmith.org/2007/dtrx/dtrx-7.1.tar.gz# tar -xvf dtrx-7.1.tar.gz # cd dtrx-7.1# python setup.py install --prefix=/usr/local

The following is a simple example. on the desktop, we create a test folder named testdir, which contains the following files and folders:

The internal file structure is as follows:

It can be seen that there is a tar compressed package in the sub-folder "folder for decompression.

We first use the tar command to package these items:

Then, place the compressed package in the "decompressed folder" to decompress the package:

It can be seen that we can decompress a compressed package without appending any options, and when we detect that there is a compressed package inside the compressed package, the terminal prompts us five options, which is very convenient.

The available options of the dtrx command are as follows:

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.