GAT Subject
Engineering
Computer Science Civil Engineering Chemical Engineering Agricultural Engineering Mechanical Engineering Electronics and Communication
21. | Which command is used to count just the number of characters in a file? | ||
A. | wc - 1 | ||
B. | wc -c | ||
C. | wc -w | ||
D. | wc -r | ||
22. | Which of the following commands is used to list contents of directories? | ||
A. | ls | ||
B. | lp | ||
C. | dir | ||
D. | tar | ||
23. | Which command is used to display a file contents in octal form? | ||
A. | cd | ||
B. | od | ||
C. | of | ||
D. | oct | ||
24. | Which command will be used with vi editor to insert text to left of cursor? | ||
A. | s | ||
B. | S | ||
C. | a | ||
D. | i | ||
25. | In vi editor, forward search is performed using the command. | ||
A. | :pat | ||
B. | ?pat | ||
C. | /pat | ||
D. | All of the above | ||