bash check if in superuser mode

In bash script, how do I check for superuser mode? (check if admin)

username=root?

Hi
whoami, $UID, $EUID, id -u lots :wink:


if  $EUID -ne 0 ]]; then

That’s worked. :slight_smile: