#!/bin/bash
#
user=`whoami`
if [ "$user" == "root" ];then
echo "root is super user"
else
echo "$user is a normal user"
fi
转载于:https://blog.51cto.com/8776055/1837730
#!/bin/bash
#
user=`whoami`
if [ "$user" == "root" ];then
echo "root is super user"
else
echo "$user is a normal user"
fi
转载于:https://blog.51cto.com/8776055/1837730