1.

-d option is used for checking if the file exists and is a directory.(a) True(b) FalseThis question was addressed to me in exam.I want to ask this question from Using test and [ ] to Evaluate Expressions topic in section Essential Shell Programming of Unix

Answer»

The CORRECT choice is (a) True

Easy explanation: If we WANT to check whether the file exists and is a DIRECTORY we have to use the -d OPTION. The syntax is -d filename.



Discussion

No Comment Found

Related InterviewSolutions