Unix interview questions part 10

Unix interview questions part 10

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

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?

Correct Answer is : lp

3. Which option is used with lp command if there are more than one printers in the system?

Correct Answer is : -d

4. Which option is used for printing multiple copies of a file using lp command?

Correct Answer is : -n

5. -t option prints the title on the first page.

Correct Answer is : TRUE

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?

Correct Answer is : file

8. file command identifies the file type by examining the magic number of the file.

Correct Answer is : TRUE

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?

Correct Answer is : z

11. For searching a character, ___ and ___ are used.

Correct Answer is : f, t

12. For moving the cursor forward to the first occurrence of a character, __ is used.

Correct Answer is : f

13. t command positions the cursor a single character before the occurrence.

Correct Answer is : TRUE

14. __ and __ commands works in a reverse manner as f and t.

Correct Answer is : F, T

15. For repeating the character search , and ; are used.

Correct Answer is : TRUE

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.

Correct Answer is : :set

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

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon