Unix – Section 3

11. Which of the following special shell variables is used to process number of the current shell?

A. $!
B. $$
C. $0
D. $*
E. None of the above

Correct Answer: B. $$

12. Which option is used with cmp command to give a detailed list of the byte number and the differing bytes in octal for each character that differs in both the files?

A. -l
B. -d
C. -r
D. -b
E. None of the above

Correct Answer: A. -l

13. Which command is used with vi editor scroll half page backward?

A. [Control-d] B. [Control – u] C. [Control-c] D. [Control -P] E. None of the above

Correct Answer: B. [Control – u]

14. Which command is used with vi editor to move cursor forward to first occurrence of character ‘ch’ in the current line?

A. tch
B. fch
C. rch
D. ech
E. None of the above

Correct Answer: B. fch

15. Which of the following keys is used to delete the character beneath the cursor?

A. x
B. X
C. dd
D. D
E. None of the above

Correct Answer: A. x

Leave A Comment?

14 + 14 =