Multiple choice technology operating systems if[ -f filename ] checks for the existence of a file checks for existence of a directory checks for read permission on a file checks for write permission on a file Reveal answer Fill a bubble to check yourself A Correct answer Explanation The -f test operator checks whether a file exists AND is a regular file (not a directory or device). In shell scripting, [ -f filename ] returns true only if the specified path is an existing regular file.