场景

Centos6下使用加密压缩,可以从A机器到B机器解压。

可用在kali上解压就不行。

命令

解包
tar zxvf FileName.tar


打包
tar czvf FileName.tar DirName        # 打包文件夹
tar czvf FileName.tar test1 test2     # 打包多个文件
 
加密压缩
tar -czvf - file | openssl des3 -salt -k passw0rd -out /path/to/file.tar.gz

解密解压
openssl des3 -d -k passw0rd -salt -in /path/to/file.tar.gz | tar xvf -

 

 

zip压缩

zip -er dist2.zip dist

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2022-02-09
相关资源
相似解决方案