Shell 练习
练习一
#!/bin/bash
echo -n "login:"
read name
echo -n "password:"
read -s password
if [ $name = 'root' ]
then
if [ $password = 'toor' ]
then
echo -e "登陆成功"
else
echo -e "密码错误"
fi
else
echo -e "用户不存在"
fi练习二
练习三
练习四
练习五
练习六
最后更新于