Linux_FoundationLinux_Foundation
LFCS · Question #118
LFCS Question #118: Real Exam Question with Answer & Explanation
Sign in or unlock LFCS to reveal the answer and full explanation for question #118. The question stem and answer options stay visible for context.
Submitted by eva_at· Apr 18, 2026Essential Commands
Question
What is the difference between the commands test -e path and test -f path?
Options
- AThey are equivalent options with the same behaviour.
- BThe -f option tests for a regular file. The -e option tests for an empty file.
- CBoth options check the existence of the path. The -f option also confirms that it is a regular file.
- DThe -f option tests for a regular file. The -e option tests for an executable file.
Unlock LFCS to see the answer
You've previewed enough free LFCS questions. Unlock LFCS for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#test command#file existence#regular file#shell scripting