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

在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 - 
posted @ 2018-04-19 20:34  wclwcw  阅读(2342)  评论(0编辑  收藏  举报