1、sudo: a terminal is required to read the password; either use the -S option to read from standard in or configure an askpass helper
sudo: a terminal is required to read the password; either use..... 问题解决方法
2、wget: 未找到命令
yum -y install wget
3、由于shell的if语法错误导致的错误:
-
错误的替换/bad subsitution
-
未预期的符号 `then' 附近有语法错误
-
未预期的符号 `fi' 附近有语法错误
正确的if写法:
if [ $`whoami`="miduser" ];then exit echo "exit" fi
错误的地方:
- if和中括号之间有空格
- 中括号和内部的表达式之间也有空格
- then之后必须有执行语句,不能写空if