Mac电脑压缩文件加密,可以使用终端执行如下命令:
1、cd 到文件/文件夹目录
2、执行压缩命令:
压缩文件:zip -e new.zip readme.txt压缩文件夹:zip -er ~/Desktop/Work/new.zip ~/Desktop/Work/orignal
3、输入并确认密码
4、等待压缩完成
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C02RKBS1FVH5:~ jijiudong001$ cd ~/Desktop/WorkC02RKBS1FVH5:Work jijiudong001$ zip -e new.zip readme.docxEnter password:Verify password: adding: readme.docx (deflated 1%)C02RKBS1FVH5:Work jijiudong001$
C02RKBS1FVH5:~ jijiudong001$ cd ~/Desktop/WorkC02RKBS1FVH5:Work jijiudong001$ zip -er ./newFloder.zip ./orignalEnter password:Verify password: adding: orignal/ (stored 0%) adding: orignal/APIS.rtf (deflated 71%)C02RKBS1FVH5:Work jijiudong001$