linux tar

tar

  tar -zcvf file.tar.gz file1 file2; c:create 压缩

  tar -ztvf file.tar.gz; t:list 查询

  tar -zxvf file.tar.gz; x:extract 解压缩

zip 压缩与解压

  sudo apt-get install zip

  unzip darwin.zip 解压

  unzip -v darwin.zip 查看

  zip -q -r html.zip html; 压缩 q:不显示压缩过程;r:递归处理

原文地址:https://www.cnblogs.com/wang-jing/p/5026009.html