linux温故--1-daily_routine

Posted zxw-xxcsl

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux温故--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 打印日历

 date -u 显示或设置全球时间(格林威治时间)

$LOGNAME当前登录用户

以上是关于linux温故--1-daily_routine的主要内容,如果未能解决你的问题,请参考以下文章

linux温故知新五

温故之--Linux 初始化 init 系统

linux温故知新十

Linux之温故知新1

linux温故知新八

Linux之温故知新2