U.S. Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation LFCS Exam - Topic 5 Question 65 Discussion

Which of the following find commands will print out a list of files owned by root and with the SUID bit set in /usr?
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

Linux Foundation LFCS Exam - Topic 5 Question 65 Discussion

Actual exam question for Linux Foundation's LFCS exam
Question #: 65
Topic #: 5
[All LFCS Questions]

Which of the following find commands will print out a list of files owned by root and with the SUID bit set in /usr?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Elenora
7 months ago
C is totally wrong, it’s not even close to valid syntax!
upvoted 0 times
...
Telma
7 months ago
Wait, can you really use +s for SUID? That seems off.
upvoted 0 times
...
Samira
7 months ago
B doesn't seem correct, it’s missing some syntax.
upvoted 0 times
...
Rochell
7 months ago
I think E looks good too.
upvoted 0 times
...
Barabara
8 months ago
A is definitely the right command!
upvoted 0 times
...
Louann
8 months ago
I don't remember seeing `-type suid` in our materials, so I'm hesitant about option C. It seems off to me.
upvoted 0 times
...
Fletcher
8 months ago
I feel like I saw a question similar to this in our last practice exam, and I think `-user` is the right way to specify the owner, but I'm not confident about the rest of the command in option B.
upvoted 0 times
...
Dana
8 months ago
I think option E looks familiar; I practiced using `-perm +4000` to check for the SUID bit, but I can't recall if `-suid` is the right flag.
upvoted 0 times
...
Jacquelyne
8 months ago
I remember something about using `-uid 0` for finding files owned by root, but I'm not sure if the syntax is correct in option A.
upvoted 0 times
...
Terry
8 months ago
This seems straightforward. I'll go with option A - it looks like it covers all the requirements in the question.
upvoted 0 times
...
Myra
8 months ago
I'm a little confused by the different options here. I'll need to review my notes on the find command syntax to make sure I choose the correct one.
upvoted 0 times
...
Natalie
8 months ago
Okay, let's see. I know I need to look for files owned by root with the SUID bit set in the /usr directory. I think option A might be the right one.
upvoted 0 times
...
Norah
8 months ago
Hmm, I'm a bit unsure about the different options for the find command. I'll need to think this through carefully.
upvoted 0 times
...
Paris
8 months ago
This looks like a straightforward find command question. I think I can handle this one.
upvoted 0 times
...
Alethea
9 months ago
I'm a bit unsure about this one. I'll need to re-read the question and options carefully to make sure I understand the full scope of the issue before selecting an answer.
upvoted 0 times
...
Ona
9 months ago
Oof, NTP configuration - that's not my strongest area. I'll need to really focus and take my time to make sure I get this right. Hopefully the exam provides clear instructions to follow.
upvoted 0 times
...
Reita
1 year ago
Anyone else feel like the exam writers are just trying to confuse us with these weird find command options? I'm just gonna go with the one that sounds the most straightforward.
upvoted 0 times
Franchesca
12 months ago
Yeah, let's go with option A) find /usr -uid 0 -perm +4000.
upvoted 0 times
...
Royce
1 year ago
I agree, that one seems like the most straightforward choice.
upvoted 0 times
...
Yuette
1 year ago
I think option A) find /usr -uid 0 -perm +4000 is the correct one.
upvoted 0 times
...
...
Nelida
1 year ago
Ha! Option E is the winner, it's the only one that actually uses the -suid flag. Feels like a trick question, but I'm going with it.
upvoted 0 times
...
Elly
1 year ago
Option D is just weird, why would you use -ls and -u together? Seems like overkill.
upvoted 0 times
Floyd
11 months ago
E) find /usr -suid -perm +4000
upvoted 0 times
...
Alesia
11 months ago
C) find -type suid -username root -d /usr
upvoted 0 times
...
Ena
11 months ago
B) find -user root +mode +s /usr
upvoted 0 times
...
Christa
12 months ago
A) find /usr -uid 0 -perm +4000
upvoted 0 times
...
...
Jerilyn
1 year ago
Option C is a bit confusing, I don't think you can use -type and -username together like that.
upvoted 0 times
Emerson
1 year ago
D) find /usr -ls *s* -u root
upvoted 0 times
...
Lezlie
1 year ago
B) find -user root +mode +s /usr
upvoted 0 times
...
Xuan
1 year ago
A) find /usr -uid 0 -perm +4000
upvoted 0 times
...
...
Antonio
1 year ago
I'm not sure about option B, the +mode parameter doesn't seem right to me.
upvoted 0 times
Cristy
1 year ago
Yeah, option A seems to be the most accurate choice.
upvoted 0 times
...
Kiley
1 year ago
I agree, option A looks like the right command to use.
upvoted 0 times
...
Carmela
1 year ago
I think option A is the correct one.
upvoted 0 times
...
Lashanda
1 year ago
E) find /usr -suid -perm +4000
upvoted 0 times
...
Roxane
1 year ago
D) find /usr -ls *s* -u root
upvoted 0 times
...
Lawanda
1 year ago
C) find -type suid -username root -d /usr
upvoted 0 times
...
Vince
1 year ago
B) find -user root +mode +s /usr
upvoted 0 times
...
Chi
1 year ago
A) find /usr -uid 0 -perm +4000
upvoted 0 times
...
...
Berry
1 year ago
Option A looks good to me, it's the only one that uses the correct syntax for the find command.
upvoted 0 times
Merissa
1 year ago
I'm not sure about option D, it doesn't seem to be using the correct syntax for the find command.
upvoted 0 times
...
Argelia
1 year ago
D) find /usr -ls *s* -u root
upvoted 0 times
...
An
1 year ago
I think option A is correct too, it seems to be the most accurate command.
upvoted 0 times
...
Myong
1 year ago
A) find /usr -uid 0 -perm +4000
upvoted 0 times
...
...
Marylou
1 year ago
I'm not sure, but I think C) find -type suid -username root -d /usr might also be a possible answer. It mentions the type and username we are looking for.
upvoted 0 times
...
Ty
1 year ago
I agree with Junita, A) find /usr -uid 0 -perm +4000 makes the most sense based on the question.
upvoted 0 times
...
Junita
1 year ago
I think the correct answer is A) find /usr -uid 0 -perm +4000 because it specifies the user and permission we are looking for.
upvoted 0 times
...

Save Cancel