首页 > 其他 > 详细

tar命令加密压缩/解密解压

时间:2018-04-19 20:40:44      阅读:359      评论:0      收藏:0      [点我收藏+]

在tar解压文件时发生下面错误信息

gzip: stdin: not in
gzip  format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

发现文件被加密压缩了,可以用下面方式进行解压

1、加密压缩

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

2、解密解压

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

tar命令加密压缩/解密解压

原文:https://www.cnblogs.com/wclwcw/p/8886120.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!