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:

Lavina
1 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
2 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
6 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
9 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
11 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