壓縮
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 -
參考:https://blog.csdn.net/yanglishuan/article/details/47687139