#!/bin/bash
#Auther name : XJ C
# 1)say welcom to users;2)show date;3)show our mashine name;4)show the system's name and version;5)show all the listed file in the root dictory;6)show all runnig processes;7)show the value of the TERM,PATH and HOME;8)show the conditon of the disk;9)print the ID of your group using" id ";10)say "Good Bye" and tell him the time.
echo "***********1)*************"
user=`whoami` # NO space befor or after =!
case $user in
vagrant)
echo "hello vagrant";;
xj)
echo "hello xj";;
esac
echo "******2)****************"
date "+%Y-%m-%d %T"
echo "*****************"
cal
echo "******3)***********"
hostname
echo "*********4)***********"
uname -svr
echo "**********5)********"
ls ../
echo "**********6)********"
ps -u root
echo "**********7)*******"
echo "Path:$PATH;Term:$TERM;Home:$HOME"
echo "*************8)**********"
df -h -T
echo "***************9)*********"
id -g
echo "*********10)****************"
echo "Good bye +`date "+%Y-%m-%d %T"`"