📄 secret-pw.sh
字号:
#!/bin/bash# secret-pw.sh: secret passwordechoecho -n "Enter password "read passwdecho "password is $passwd"echo -n "If someone had been looking over your shoulder, "echo "your password would have been compromised."echo && echo # Two line-feeds in an "and list."stty -echo # Turns off screen echo.echo -n "Enter password again "read passwdechoecho "password is $passwd"echostty echo # Restores screen echo.exit 0# Do an 'info stty' for more on this useful-but-tricky command.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -