$ ls ~yifei/notes/

Linux 命令行压缩工具

Posted on:

Last modified:


  1. tar.gz 或者 tgz 文件
  2. zip 文件
  3. rar 文件,Linux 下几乎没有
  4. 7z 文件

tar.gz 文件


tar cvzf FILES...


tar xvzf TARBALL

zip 文件

zip -r ZIPFILE DIRECTORY to zip a directory

zip -r ZIPFILE DIRECTORY -x "*.git*" exclude the .git directory

zip -l ZIPFILE list the files

7z 文件


apt-get install p7zip-full


7z x some.7z
WeChat Qr Code

© 2016-2022 Yifei Kong. Powered by ynotes

All contents are under the CC-BY-NC-SA license, if not otherwise specified.

Opinions expressed here are solely my own and do not express the views or opinions of my employer.

友情链接: MySQL 教程站