linux里daily_routine实例代码详解
程序员文章站
2022-03-29 18:48:46
首先看实例代码:
#/bin/bash
cal
date -u
echo "hello,welcome ${logname}!a full...
首先看实例代码:
#/bin/bash cal date -u echo "hello,welcome ${logname}!a full day has begun!" read -p "input your pass word!" pwd if test $pwd == "123" then echo "your login sucessfully!" for file in /tmp/* do echo $file done else echo "deny logon" fi
cal 打印日历
date -u 显示或设置全球时间(格林威治时间)
${logname}当前登录用户
以上实例非常简单,大家可以尝试测试下,感谢大家的学习和对的支持。