1.

Which of the following option is used for checking if the file is readable or not?(a) -r(b) -f(c) -n(d) -zThis question was posed to me during an interview.This interesting question is from Using test and [ ] to Evaluate Expressions in portion Essential Shell Programming of Unix

Answer»

The correct choice is (a) -R

The best I can EXPLAIN: To CHECK if the file EXISTS and is readable we can use -r OPTION. The syntax is -r filename.



Discussion

No Comment Found

Related InterviewSolutions