60 mcqs Shell script and OS
60 mcqs Shell script and OS
Which command is used to display the content of a file one screen at a time?
A. more
B. less
C. cat
D. both A and B
ANSWER: D
Which of the following operators is used for string comparison in shell scripting?
A. -eq
B. ==
C. -lt
D. !=
ANSWER: B
Which of the following is NOT a valid file test operator in shell scripting?
A. -f
B. -d
C. -e
D. -x
ANSWER: D