Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation Exam LFCS Topic 7 Question 52 Discussion

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

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

Show Suggested Answer Hide Answer
Suggested Answer: E

Contribute your Thoughts:

Rikki
2 days ago
I almost went with A, but then I realized that the options have different behaviors. C is the clear winner here.
upvoted 0 times
...
Lavina
11 days ago
I was a bit confused between the -e and -f options, but after reading the question closely, I think C is the way to go.
upvoted 0 times
...
Mona
12 days ago
Oh, I see. So -f not only checks for existence but also confirms it's a regular file. That makes sense.
upvoted 0 times
...
Danilo
16 days ago
Option C seems to be the correct answer. Both options check for the existence of the path, but -f also confirms that it is a regular file.
upvoted 0 times
...
Lezlie
19 days ago
Actually, -f checks for a regular file, and -e checks for the existence of the path. So, -f is more specific.
upvoted 0 times
...
Mona
21 days ago
I think the difference is that -f checks for a regular file, while -e checks for an empty file.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77