CompTIA Linux+ Powered by LPI (LX0-104) — Question 16
Which of the following find commands will print out a list of files owned by root and with the SUID bit set in /usr?
Answer options
- A. find /usr -uid 0 -perm +4000
- B. find -user root +mode +s /usr
- C. find -type suid -username root -d /usr
- D. find /usr -ls \*s\* -u root
- E. find /usr -suid -perm +4000
Correct answer: A
Explanation
The correct answer is A because it uses the correct syntax to find files in the /usr directory that are owned by user ID 0 (root) and have the SUID permission bit set. The other options either have incorrect syntax or use invalid flags, making them ineffective for the specified task.