ID
if [ "'id'" = "uid=0(root) gid=0(root)" ] then echo "you are root" fi
if id | fgrep root > /dev/null then echo "you are root" fi
if [ "'id'" = "uid=0(root) gid=0(root)" ] then echo "you are root" fi
if id | fgrep root > /dev/null then echo "you are root" fi