# id # check if current user is root #| id rwx_id_root() { local user_id user_id="$(id -u)" [ "${user_id}" -eq 0 ] || return 1 }