tar壓縮/解壓、加密壓縮/解密解壓

壓縮

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 -

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章