1.

Which of the following option is used for checking if the file is writable or not?(a) -e(b) -f(c) -n(d) -wI got this question in unit test.I'd like to ask this question from Using test and [ ] to Evaluate Expressions in portion Essential Shell Programming of Unix

Answer»

The correct OPTION is (d) -W

For EXPLANATION I would say: To check if the FILE exists and is writable we can use -w option. The syntax is -w filename.



Discussion

No Comment Found

Related InterviewSolutions