#!/bin/bashdatewho | grep $1if(($?==0))then echo"Hello $1"fi
兄弟怕是期末考试吧
显示日期可以使用date命令我想第二个应该是指定用户是否目前正登陆在该系统中吧可以使用who命令进行查看然后通过write可以向其发送一个消息