作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
好的,这是我的脚本
#!/bin/bash
cd /var/backups/System/
unzip Themes.zip
exit 0
最佳答案
使用 -P
密码标志。来自 man unzip
:
-P password
use password to decrypt encrypted zipfile entries (if any). THIS IS INSECURE! Many multi-user operating systems provide ways for any user to see the current command line of any other user; even on stand-alone systems there is always the threat of over-the-shoulder peeking. Storing the plaintext password as
part of a command line in an automated script is even worse. Whenever possible, use the non-echoing, interactive prompt to enter passwords. (And where security is truly important, use strong encryption such as Pretty Good Privacy instead of the relatively weak encryption provided by standard zipfile utili-
ties.)
关于passwords - 解压脚本密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11389838/
我是一名优秀的程序员,十分优秀!