Which of the following statement is true for testing whether the file is read only or not?
(a) test -read filename
(b) check -read filename
(c) test -r filename
(d) check -r filename
Answers
Answered by
8
Answer:
(a) text - read filename
Answered by
2
(d) check -r filename
Explanation:
In order to check if a file is read-only or not, we use the statement check -r filename. Read-only means that the file can only be edited by the creator and all others can only view its content but not allowed to make any changes to the file. If the file is not read-only, then any one who opens the file will be able to make changes and save it to the file.
Option D is the answer.
Similar questions