标签:
1 #!/bin/bash 2 if [ `id -u` -ne 0 ]; then 3 echo "Not Root" 4 exit 666 5 fi
Bash判断是否是root
原文地址:http://www.cnblogs.com/imzye/p/5059074.html