LPIC-1 Exam 102, Part 2 of 2, version 5.0 102-500 Question # 25 Topic 3 Discussion

LPIC-1 Exam 102, Part 2 of 2, version 5.0 102-500 Question # 25 Topic 3 Discussion

102-500 Exam Topic 3 Question 25 Discussion:
Question #: 25
Topic #: 3

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


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.


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.


Get Premium 102-500 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.