linux 打包为zip压缩包

 

[root@nb linux学习]# zip -r dir.zip dir文件夹/ file文件 
  adding: dir文件夹/ (stored 0%)
  adding: file文件 (deflated 15%)
#把文件夹压缩成zip文件

-o:解压并覆已存在的文件

# unzip -o dir.zip 
Archive:  dir.zip
  inflating: file文件     

 

posted @ 2017-03-31 10:34  bass  阅读(7129)  评论(0编辑  收藏  举报