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

转:https://blog.csdn.net/yanglishuan/article/details/47687139

压缩

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 -

猜你喜欢

转载自blog.csdn.net/ypbsyy/article/details/81450715
今日推荐