Unix Basic Utilities MCQs
Utilities MCQs : This section focuses on "Basic Utilities - Printing, Email etc" in unix. These Multiple Choice Questions (MCQ) should be practiced to improve the unix skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. Many versions of Unix include two powerful text formatters
,_____and________.
A. nroff, proff
B. nroff, froff
C. nroff, sroff
D. nroff, troff
View Answer
Ans : D
Explanation: Many versions of Unix include two powerful text formatters, nroff and troff.
2. Name the command which is used to do minor formatting of files on the terminal screen or for a printer?
A. ar
B. br
C. nr
D. pr
View Answer
Ans : D
Explanation: The pr command does minor formatting of files on the terminal screen or for a printer.
3. Which option of pr command is used to eliminates the printing of header and the top/bottom margins?
A. -a
B. -f
C. -t
D. -n
View Answer
Ans : C
Explanation: -t : Eliminates the printing of header and the top/bottom margins
4. Which command is used to prints a file onto paper as opposed to the screen display?
A. lp
B. lpr
C. Both A and B
D. None of the above
View Answer
Ans : C
Explanation: The command lp or lpr prints a file onto paper as opposed to the screen display.
5. If you are using the lp command, you can use the ______ option to print Num number of copies.
A. -n
B. -nNum
C. -Numn
D. None of the above
View Answer
Ans : B
Explanation: If you are using the lp command, you can use the -nNum option to print Num number of copies.
6. Which command is used to terminates a printing request from the lp command?
A. can
B. cd
C. cancel
D. lpm
View Answer
Ans : C
Explanation: The cancel command terminates a printing request from the lp command.
7. Which command is used to to send and receive mail?
A. mail
B. mailto
C. email
D. gmail
View Answer
Ans : A
Explanation: You use the Unix mail command to send and receive mail.
8. Which option in mail command is used to sends carbon copies to the list of users
A. -a
B. -b
C. -c
D. -d
View Answer
Ans : C
Explanation: -c : Sends carbon copies to the list of users. List should be a commaseparated list of names.
9. Which command is used to terminates all lpr requests?
A. lpr
B. lrpm
C. lpra
D. lprs
View Answer
Ans : B
Explanation: The lprm command terminates all lpr requests.
10. Which command is used to show what`s in the printer queue?
A. lpstat
B. lpsta
C. lptat
D. lps
View Answer
Ans : A
Explanation: The lpstat command shows what`s in the printer queue: request IDs, owners, file sizes, when the jobs were sent for printing, and the status of the requests.
Discussion