JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Unix interview questions part 10
Unix interview questions part 10
Back
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
A. reads word count from sample.txt
B. reads word count from newfile
C. reads word count from sample.txt and write it to newfile
D. error is produced
Show Correct Answer
Correct Answer is :
reads word count from sample.txt and write it to newfile
2. Which command is used for printing a file?
A. lp
B. pr
C. pg
D. more
Show Correct Answer
Correct Answer is :
lp
3. Which option is used with lp command if there are more than one printers in the system?
A. -t
B. -d
C. -i
D. -p
Show Correct Answer
Correct Answer is :
-d
4. Which option is used for printing multiple copies of a file using lp command?
A. -l
B. -i
C. -t
D. -n
Show Correct Answer
Correct Answer is :
-n
5. -t option prints the title on the first page.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
6. What does the following command do? cancel prl-320
A. cancel printing from printer ‘prl’
B. cancel printing current job
C. cancel printing job number 320 on printer name ‘prl’
D. undefined behavior
Show Correct Answer
Correct Answer is :
cancel printing job number 320 on printer name ‘prl’
7. Which command is used for knowing the file type?
A. file
B. type
C. filetype
D. type of file
Show Correct Answer
Correct Answer is :
file
8. file command identifies the file type by examining the magic number of the file.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
9. UNIX offers a pager named ____ which has replaced the original pager of UNIX called ____
A. more, less
B. less, more
C. more, pg
D. pg, more
Show Correct Answer
Correct Answer is :
more, pg
10. Which of the following is not an internal command for more?
A. q
B. f
C. b
D. z
Show Correct Answer
Correct Answer is :
z
11. For searching a character, ___ and ___ are used.
A. f, t
B. n, w
C. e, d
D. k, n
Show Correct Answer
Correct Answer is :
f, t
12. For moving the cursor forward to the first occurrence of a character, __ is used.
A. d
B. t
C. f
D. n
Show Correct Answer
Correct Answer is :
f
13. t command positions the cursor a single character before the occurrence.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
14. __ and __ commands works in a reverse manner as f and t.
A. F, T
B. tf, ft
C. z, x
D. ff, tt
Show Correct Answer
Correct Answer is :
F, T
15. For repeating the character search , and ; are used.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
16. For customizing vi, which of the following command is used?
A. set
B. map
C. abbr
D. set, map, abbr
Show Correct Answer
Correct Answer is :
set, map, abbr
17. vi environment is determined by variable settings. These variables are controlled by ____ command.
A. :set
B. :abbr
C. :map
D. autowrite
Show Correct Answer
Correct Answer is :
:set
18. For automatic indentation, ____ is used with : set command.
A. autowrite
B. autoindent
C. automode
D. showmode
Show Correct Answer
Correct Answer is :
autoindent
19. Which of the following is used with :set to customize vi to ignore case in pattern searches?
A. nomatch
B. ignorecase
C. nocase
D. nomagic
Show Correct Answer
Correct Answer is :
ignorecase
20. To change the default tab stop spaces in vi, ___ can be used with :set.
A. nomagic
B. tabstop=n
C. tab
D. tabchange
Show Correct Answer
Correct Answer is :
tabstop=n
Similar Interview Questions
Search for latest jobs
Find Jobs