chenshenhai / blog

个人博客,没事写写玩玩~~~
146 stars 21 forks source link

Mac下加密压缩文件/文件夹 #23

Open chenshenhai opened 7 years ago

chenshenhai commented 7 years ago

压缩文件

# 执行压缩文件命令
zip -e file.zip fileName

# 命令执行后会提醒输入密码和确认密码
# Enter password: 
# Verify password: 

压缩文件夹

# 执行压缩文件夹命令
zip -e -r dir.zip ./dirName

# 命令执行后会提醒输入密码和确认密码
# Enter password: 
# Verify password: