man zippass -e --encrypt
Encrypt the contents of the zip archive using a password which is entered
on the terminal in response to a prompt (this will not be echoed; if standard
error is not a tty, zip will exit with an error). The password prompt is
repeated to save the user from typing errors.
Run Code Online (Sandbox Code Playgroud)
压缩文件的命令是
zip -e file.zip file1 file2 file3
如果你想压缩一个目录以及其中的所有目录和文件,
zip -er file.zip directory
注意:zip使用相对较弱的加密方案。如果您正在寻找严肃且行业认可的东西,请使用7za(from p7zip)。
如果您不想使用控制台,请wine在其下安装 WinRAR/7-zip。这样你就不必处理控制台了。
| 归档时间: |
|
| 查看次数: |
3805 次 |
| 最近记录: |