摘要:
#!/bin/bash # 校验用户输入的密码是否正确 read -p '请输入密码:' PASSWORD # 校验密码 echo "${PASSWORD}" | sudo -S apt policy openssh-server res=$? #when the condition is true 阅读全文
摘要:
#!/bin/bash read -p "请输入密码:" passwd # -p 提示符 echo ${passwd} 阅读全文