Linux CLI - Users and Groups
You want to check if the current user is root by comparing the user ID. Which command correctly tests this in a script?
id -u equals 0 to detect root user [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions