Dtrx – 智能的存檔文件(tar、zip、cpio、rpm、deb、rar)提取Linux工具

jopen 10年前發布 | 15K 次閱讀 dtrx Linux

提取存檔最令人困惑的莫過于面對不同的存檔格式,不僅得選擇合用的存檔提取程序,有時還得搭配各種不同的選項。有了 dtrx 的幫助,則可以使我們變得更懶一點,只要記住一個命令就夠了。

dtrx 這個 Python 程序能夠提取 tar、zip、cpio、deb、rpm、gem、7z、cab、lzh、rar、gz、bz2、lzma、xz 等多種存檔格式,甚至還包括遞歸提取功能。

要使用 dtrx 提取存檔,只要在其后跟存檔文件名稱即可,如:

dtrx file_name.tar.gz

dtrx 的重要選項包括:

  • -l:列出存檔中的文件
  • -r:遞歸提取存檔文件
  • -m:提取元數據(如 deb)
  • -o:覆寫模式
  • -f:將所有文件提取到當前目錄

Dtrx 功能特性:

  1. Handles many archive types: It provides only one simple command to extract tar, zip, rar, gz, bz2, xz, rpm, deb, gem, self-extracting zip files and many other formats of exe files.
  2. Keeps everything organized: It will extract archives into their own dedicated directories.
  3. Sane permissions: It also make sure, user can read and write all those files after extraction, keeping permission intact.
  4. Recursive extraction: It can find archives inside the archive and extract those too.

項目主頁:http://www.baiduhome.net/lib/view/home/1389149233187

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!