Linux Basic MCQ of Computer Science SET-18 with Answers free PDF

We have provide here is the list of Linux MCQs for Computer Engineering preparation competitive exams. Each question has four options followed by the right answer.

MCQ Questions for Linux of Computer Science with Answers

Q1. How would you show a list of files and directories that are inside the current directory.

(i) list
(ii) listfiles
(iii) ls
(iv) lst

(iii) ls

Q2. What is the full path for grub’s configuration file

(i) /boot/grub/lsof.conf
(ii) /boot/grub/menu.lst
(iii) /etc/grub/grub.conf
(iv) /etc/grub/grub.txt

(ii) /boot/grub/menu.lst

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

(i) root
(ii) kara
(iii) group
(iv) user

(ii) kara

Q4. Who founded the Linux Kernel?

(i) Bill Gates
(ii) Ben Thomas
(iii) Richard Stallman
(iv) Linus Torvalds

(iv) Linus Torvalds

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

(i) sort – r
(ii) st
(iii) sh
(iv) sort

(iv) sort

Q6. What is the syntax for mounting CD-ROMs?

(i) # mount /mnt/cdrw
(ii) # mount / mnt/cdrom
(iii) # mount/ mnt/cd
(iv) # mount/mnt/cdr

(ii) # mount / mnt/cdrom

Q7. Which system provides excellent security features?

(i) DOS
(ii) Xenix
(iii) Minix
(iv) Linux

(iv) Linux

Q8. “cat” is the command used to

(i) change directory
(ii) move directory
(iii) come out of shell
(iv) see the contents of file

(iv) see the contents of file

Q9. What is the following syntax used for? command >file1 2>file2

(i) Send command’s standard output to file1,and its standard error to file2
(ii) Send command’s standard error to file1, and its standard output to file2
(iii) Send command’s standard error to file1, and its standard input to file2
(iv) Send command’s standard input to file1,and its standard output to file2

(i) Send command’s standard output to file1,and its standard error to file2

Q10. What command is used with vi editor to move the cursor to the left?

(i) h
(ii) k
(iii) j
(iv) i

(i) h

Q11. RPM

(i) stands for Red Hat Package Manager
(ii) is used to install, uninstall, and manage packages
(iii) is used to keep track of the users
(iv) assigns a dynamic IP address

(i) stands for Red Hat Package Manager

Q12. What command is used to list only the files chap0l, chap02 and chap04?

(i) ls chap*
(ii) ls chap[124]
(iii) ls – x chap0[124]
(iv) ls chap0[124]

(iii) ls – x chap0[124]

Q13. The prompt of the other users is

(i) @
(ii) %
(iii) #
(iv) $

(iv) $

Q14. User directories are created under

(i) Bin directory
(ii) Tmp directory
(iii) Dev directory
(iv) Home directory

(iv) Home directory

Q15. _______is the command used to create new directory.

(i) mkdir
(ii) newdir
(iii) dir
(iv) mk/dir

(i) mkdir

Q16. How would you sort a file called shopping on column 3?

(i) sort -n 3 shopping
(ii) sort -k 3 shopping
(iii) sort -c 3 shopping
(iv) sort -c3 shopping

(ii) sort -k 3 shopping

Q17. What command is used to copy a file?

(i) tar
(ii) cpio
(iii) cp
(iv) copy

(iii) cp

Q18. How can you navigate around virtual consoles?

(i) Alt+Function Key
(ii) Ctrl+Function Key
(iii) Ctrl+Alt+Del
(iv) Alt+a+w+Function Key

(i) Alt+Function Key

Q19. Which of the following is not a communication command?

(i) grep
(ii) mail
(iii) mesg
(iv) write

(i) grep

Q20. All directories are stored under one main directory called __

(i) Server
(ii) Home
(iii) Folder
(iv) Root

(iv) Root

We hope the given Computer Engineering MCQ Questions for Linux with Answers PDF Free Download will help you. If you have any queries regarding Linux MCQs Multiple Choice Questions with Answers, drop a comment below and we will get back to you soons.

Leave a Comment