Which of the following comparison operators for test work on elements in the file system? (Choose two.)
Suggested Answer: C, D
Get Premium 102-500 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
25 comments · newest first
LA
Lavera
11 months ago
Yup, --d checks directories, --f checks files. Simple!
IN
India
11 months ago
--z is for strings, not files!
TE
Telma
11 months ago
Wait, are you sure about --f? I thought it was for files only.
RO
Rory
12 months ago
Totally agree, those are the correct ones!
JE
Jessenia
12 months ago
--d and --f are the ones for file system checks.
KR
Kristine
12 months ago
I feel like --eq and --lt are more about numerical comparisons, so they probably don't apply here.
TE
Terrilyn
1 year ago
I practiced a similar question last week, and I think --d is definitely for directories, but I can't recall if --f is the other one.
KA
Kattie
1 year ago
I'm not entirely sure about --z, but I remember it being related to string tests, not file system elements.
KI
Kimberely
1 year ago
I think --d and --f are the ones that check for directories and files, right?
LU
Ludivina
1 year ago
Let me see... I'm pretty sure --z and --d are not file system operators, but I'm not 100% sure about the others. I'll have to think this through.
ER
Erick
1 year ago
I've got this! The two correct answers are --eq and --f. I'm confident in my knowledge of file system operations.
TW
Twana
1 year ago
Wait, what are the file system comparison operators again? I'm a bit fuzzy on those.
LE
Leslie
1 year ago
Hmm, this is a tricky one. I'll need to think carefully about the file system comparison operators.
AD
Adela
1 year ago
Okay, I know the file system operators pretty well, so I think I can handle this. Let me review the options.
AD
Adela
1 year ago
I'm a bit unsure about this one. I want to double-check the steps to make sure I'm not missing anything important.
TH
Thad
1 year ago
Okay, let me think this through. The engineer installed a device to automatically detect the missing caddy and prevent the door from closing. That sounds like a Poka yoke solution, which is designed to prevent defects by making it physically impossible to make the mistake. I'm feeling good about that being the right answer.
LA
Lawanda
2 years ago
I don't think --z is used for file system elements. It's more for checking if a string is null.
VA
Van
2 years ago
I'm not so sure about that. I think --z could also be one of the comparison operators.
LE
Leigha
2 years ago
I agree with you, --d checks if the file exists and is a directory, while --f checks if the file exists and is a regular file.
LA
Lawanda
2 years ago
I think the operators that work on elements in the file system are --d and --f.
EV
Eveline
3 years ago
Hmm, maybe you're right. I'll check the documentation.
KA
Kathryn
3 years ago
I remember using --f for file comparison.
AL
Alesia
3 years ago
No, I'm pretty sure it's --d and --z.
EV
Eveline
3 years ago
I think it's --d and --f.
KA
Kathryn
3 years ago
Which options work on elements in the file system?