superuser?

check if current user has administrator/root privileges


Parameters

superuser? 

Returns

  • :logical

Examples

copy
; when running as root superuser? ; => true ; when running as regular user superuser? ; => false

Related