ExamGecko
Question list
Search
Search

Question 11 - 102-500 discussion

Report
Export

What is the difference between the commands test -e path and test -f path?

A.
They are equivalent options with the same behaviour.
Answers
A.
They are equivalent options with the same behaviour.
B.
The -f option tests for a regular file. The -e option tests for an empty file.
Answers
B.
The -f option tests for a regular file. The -e option tests for an empty file.
C.
Both options check the existence of the path. The -f option also confirms that it is a regular file.
Answers
C.
Both options check the existence of the path. The -f option also confirms that it is a regular file.
D.
The -f option tests for a regular file. The -e option tests for an executable file.
Answers
D.
The -f option tests for a regular file. The -e option tests for an executable file.
Suggested answer: C
asked 18/09/2024
Jonathan Steeman
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first