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:递归处理

 

posted on 2015-12-07 14:34  j.w  阅读(302)  评论(0编辑  收藏  举报