Question 1080
A RHEL 10 system administrator must show sudo privileges available to the current user. Which sudo-related command accomplishes this task?
Explanation
Correct Answer
sudo -l lists effective command authorizations for the invoking user This meets the exact privileged-access operation.
Incorrect Answers
visudo -c checks syntax and ownership rules of sudoers files It grants, inspects, or edits sudo access in a different way. The stated task is to show sudo privileges available to the current user. Instead, `sudo -l` is the relevant alternative because sudo -l lists effective command authorizations for the invoking user This meets the exact privileged-access operation.
visudo validates configuration before installing the modified sudoers file It grants, inspects, or edits sudo access in a different way. The stated task is to show sudo privileges available to the current user. Instead, `sudo -l` is the relevant alternative because sudo -l lists effective command authorizations for the invoking user This meets the exact privileged-access operation.
sudo -i gives a login-like shell with root identity if policy permits it It grants, inspects, or edits sudo access in a different way. The stated task is to show sudo privileges available to the current user. Instead, `sudo -l` is the relevant alternative because sudo -l lists effective command authorizations for the invoking user This meets the exact privileged-access operation.






Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests