1. What does the following command do?
$ wc sample.txt > newfile
Correct Answer is : reads word count from sample.txt and write it to newfile
2. Which command is used for printing a file?
3. Which option is used with lp command if there are more than one printers in the system?
4. Which option is used for printing multiple copies of a file using lp command?
5. -t option prints the title on the first page.
6. What does the following command do?
cancel prl-320
Correct Answer is : cancel printing job number 320 on printer name ‘prl’
7. Which command is used for knowing the file type?
8. file command identifies the file type by examining the magic number of the file.
9. UNIX offers a pager named ____ which has replaced the original pager of UNIX called ____
Correct Answer is : more, pg
10. Which of the following is not an internal command for more?
11. For searching a character, ___ and ___ are used.
12. For moving the cursor forward to the first occurrence of a character, __ is used.
13. t command positions the cursor a single character before the occurrence.
14. __ and __ commands works in a reverse manner as f and t.
15. For repeating the character search , and ; are used.
16. For customizing vi, which of the following command is used?
Correct Answer is : set, map, abbr
17. vi environment is determined by variable settings. These variables are controlled by ____ command.
18. For automatic indentation, ____ is used with : set command.
Correct Answer is : autoindent
19. Which of the following is used with :set to customize vi to ignore case in pattern searches?
Correct Answer is : ignorecase
20. To change the default tab stop spaces in vi, ___ can be used with :set.
Correct Answer is : tabstop=n