Multiple choice technology

Command to verify whether the file is present in the current path.

  1. -f

  2. -e

  3. 1 and 2

  4. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Both -f (tests if file exists and is regular file) and -e (tests if file exists regardless of type) can verify a file's presence. -f is more specific for regular files, while -e works for any file type including directories.