linux ponder --1-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 Calendar Print

 date -u Display or set the world time (Greenwich Mean Time)

$ {LOGNAME} users currently logged on

Guess you like

Origin www.cnblogs.com/zxw-xxcsl/p/11465096.html