码迷,mamicode.com
首页 > 其他好文 > 详细

tar压缩/解压、加密压缩/解密解压

时间:2015-08-15 23:04:43      阅读:377      评论:0      收藏:0      [点我收藏+]

标签:openssl   tar   linux   

压缩

tar -czvf /path/to/file.tar.gz file

解压

tar -xzvf /path/to/file.tar.gz /path/to

加密压缩

tar -czvf - file | openssl des3 -salt -k password -out /path/to/file.tar.gz

解密解压

openssl des3 -d -k password -salt -in /path/to/file.tar.gz | tar xzf -

版权声明:本文为博主原创文章,未经博主允许不得转载。

tar压缩/解压、加密压缩/解密解压

标签:openssl   tar   linux   

原文地址:http://blog.csdn.net/yanglishuan/article/details/47687139

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!