Linux里Daily_Routine实例代码详解

首先看实例代码:

#/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}当前登录用户

收藏 (0)
评论列表
正在载入评论列表...
我是有底线的