Shell 判断 root 运行

if \[ $UID -ne 0 \]; then  
    echo Please run as root.  
    exit  
fi
相关文章
相关标签/搜索