Which of the following find commands will print out a list of files owned by root and with the SUID bit set in /usr?
Suggested Answer: A
Get Premium LFCS Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
47 comments · newest first
EL
Elenora
11 months ago
C is totally wrong, it’s not even close to valid syntax!
TE
Telma
11 months ago
Wait, can you really use +s for SUID? That seems off.
SA
Samira
12 months ago
B doesn't seem correct, it’s missing some syntax.
RO
Rochell
12 months ago
I think E looks good too.
BA
Barabara
1 year ago
A is definitely the right command!
LO
Louann
1 year ago
I don't remember seeing `-type suid` in our materials, so I'm hesitant about option C. It seems off to me.
FL
Fletcher
1 year 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.
DA
Dana
1 year 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.
JA
Jacquelyne
1 year 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.
TE
Terry
1 year ago
This seems straightforward. I'll go with option A - it looks like it covers all the requirements in the question.
MY
Myra
1 year 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.
NA
Natalie
1 year 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.
NO
Norah
1 year ago
Hmm, I'm a bit unsure about the different options for the find command. I'll need to think this through carefully.
PA
Paris
1 year ago
This looks like a straightforward find command question. I think I can handle this one.
AL
Alethea
1 year 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.
ON
Ona
1 year 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.
RE
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.
FR
Franchesca
1 year ago
Yeah, let's go with option A) find /usr -uid 0 -perm +4000.
RO
Royce
1 year ago
I agree, that one seems like the most straightforward choice.
YU
Yuette
1 year ago
I think option A) find /usr -uid 0 -perm +4000 is the correct one.
NE
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.
EL
Elly
1 year ago
Option D is just weird, why would you use -ls and -u together? Seems like overkill.
FL
Floyd
1 year ago
E) find /usr -suid -perm +4000
AL
Alesia
1 year ago
C) find -type suid -username root -d /usr
EN
Ena
1 year ago
B) find -user root +mode +s /usr
CH
Christa
1 year ago
A) find /usr -uid 0 -perm +4000
JE
Jerilyn
1 year ago
Option C is a bit confusing, I don't think you can use -type and -username together like that.
EM
Emerson
1 year ago
D) find /usr -ls *s* -u root
LE
Lezlie
1 year ago
B) find -user root +mode +s /usr
XU
Xuan
1 year ago
A) find /usr -uid 0 -perm +4000
AN
Antonio
2 years ago
I'm not sure about option B, the +mode parameter doesn't seem right to me.
CR
Cristy
1 year ago
Yeah, option A seems to be the most accurate choice.
KI
Kiley
1 year ago
I agree, option A looks like the right command to use.
CA
Carmela
1 year ago
I think option A is the correct one.
LA
Lashanda
1 year ago
E) find /usr -suid -perm +4000
RO
Roxane
1 year ago
D) find /usr -ls *s* -u root
LA
Lawanda
1 year ago
C) find -type suid -username root -d /usr
VI
Vince
1 year ago
B) find -user root +mode +s /usr
CH
Chi
1 year ago
A) find /usr -uid 0 -perm +4000
BE
Berry
2 years ago
Option A looks good to me, it's the only one that uses the correct syntax for the find command.
ME
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.
AR
Argelia
1 year ago
D) find /usr -ls *s* -u root
AN
An
1 year ago
I think option A is correct too, it seems to be the most accurate command.
MY
Myong
2 years ago
A) find /usr -uid 0 -perm +4000
MA
Marylou
2 years 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.
TY
Ty
2 years ago
I agree with Junita, A) find /usr -uid 0 -perm +4000 makes the most sense based on the question.
JU
Junita
2 years 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.