Linux Multiple Choice Questions & Answers – Set 03

Are you guys looking for computer science MCQ Questions with Answers PDF Free Download as per computer science new exam pattern? You came to the right page. This may assist you to understand and check your knowledge about the Subjects. Students also can take a free test of the Multiple Choice Questions of computer science. Each question has four options followed by the right answer. These computer science MCQ Questions are selected supported by the newest exam pattern.


Q1. What command is used with vi editor to replace text from cursor to right

(A) S
(B) s
(C) R
(D) r

Answer: (C) R


Q2. What command is used to count the total number of lines, words, and characters contained in a file?

(A) countw
(B) wcount
(C) wc
(D) count p

Answer: (C) wc


Q3. What command is used to assign executable permission to the owner of the file named “letter”?

(A) chmod ugo + x letter
(B) chmod u + x letter
(C) chmod u + w letter
(D) chmod g + x letter

Answer: (B) chmod u + x letter


Q4. Which of the following command is used to see the services running in NFS server?

(A) rpcinfo
(B) serverinfo
(C) NFSinfo
(D) infserv

Answer:(A) rpcinfo


Q5. What command is used to terminate a process?

(A) kill
(B) cancel
(C) haltsys
(D) shutdown

Answer: (A) kill


Q6. Who founded the Linux Kernel?

(A) Bill Gates
(B) Ben Thomas
(C) Richard Stallman
(D) Linus Torvalds

Answer: (D) Linus Torvalds


Q7. You just added a new user, kara, to the system. What group is kara added to by default?

(A) root
(B) kara
(C) group
(D) user

Answer:(B) kara


Q8. What can he used to set up a firewall on a Linux system?

(A) netstat
(B) route
(C) trace
(D) ipchains

Answer: (D) ipchains


Q9. What file contains the list of port numbers (and associated names) monitored by inetd?

(A) /etc/services
(B) /etc/nsorder
(C) /etc/nsswitch.conf/
(D) /etc/hosts

Answer: (A) /etc/services


Q10. What command is used to halt a Linux system?

(A) init 0
(B) Shutdown -t
(C) Shutdown -g -y0
(D) Ctrl+Alt+Del

Answer: (A) init 0


Q11. What command is used to count just the number of lines contained in a file?

(A) wc – r
(B) wc – w
(C) wc – c
(D) wc – l

Answer: (D) wc – l


Q12. Which of the following is a valid format for mounting a CD-ROM drive?

(A) mount -t iso9660 /dev/cdrom / mnt/cdrom
(B) mount /dev/cdrom
(C) mount /mnt/cdrom
(D) All of the above

Answer: (D) All of the above


Q13. What command is used to change the working directory?

(A) cdir
(B) chdir
(C) changedir
(D) cd

Answer: (D) cd


Q14. What command is used to save the standard output in a file, as well as display it on the terminal?

(A) tee
(B) grep
(C) cat
(D) more

Answer: (A) tee


Q15. What command is used to sort the lines of data in a file in alphabetical order?

(A) sort – r
(B) st
(C) sh
(D) sort

Answer: (D) sort


Linux MCQ – All Set

Linux Computer Science Interview Questions and Answers – Set 01
Computer Science Linux Practice Test – Set 02
Linux Multiple Choice Questions & Answers – Set 03
Computer Test on Linux Online – Set 04
Linux Computer Science Interview Questions and Answers – Set 05
Online Practice Linux Computer Science – Set 06
Computer Science Engineering Linux MCQ – Set 07
Linux Exam Preparation Online – Set 08

We hope the given computer science Engineering on Linux MCQ Questions with Answers will definitely yield fruitful results. Hope you got enough ideas on the MCQs on Linux. If you have any queries related to computer science Engineering on Linux MCQs Multiple Choice Questions with Answers, drop your questions below and will get back to you as soon as possible.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top