linux zip tar壓縮/解壓、加密壓縮/解密解壓
阿新 • • 發佈:2020-12-27
技術標籤:軟體
tar
tar壓縮
tar -czvf /path/to/file.tar.gz file
tar解壓
tar -xzvf /path/to/file.tar.gz /path/to
tar 加密壓縮
tar -czvf - file | openssl des3 -salt -k password -out /path/to/file.tar.gz
tar 解密解壓
openssl des3 -d -k password -salt -in /path/to/file.tar.gz | tar xzf -
zip
zip 加密壓縮
zip -rP king roller.zip roller/
解壓縮
unzip roller.zip
會提示輸入密碼
提示:解壓縮需要輸入密碼
unzip -P 密碼 roller.zip
注:-r 遞迴 -v 檢視 -P 密碼