Home » Linux MCQ Questions with Answer

Linux MCQ Questions with Answer

In this Linux Multiple Choice Questions (MCQ) with Answer, you will find all the relevant topics of Linux Operating System (OS) subject. It is helpful for both experienced professionals as well as freshers. Multiple sets of questions based on various sections are available in this Linux MCQs. These Multiple Choice Questions have 10 questions in each set. You will find the most relevant and accurate topics to practice for your interviews, exams, online quizzes & mock tests and certifications. You should take all the quizzes 1 by 1 to enhance your current skills or get the better opportunities in your current IT role.

Linux MCQ Questions and Answers:

Below are the multiple choice questions for Linux, designed to test your knowledge and understanding of the operating system.

Q1. Which of the following is not a function of the Linux kernel?

  1. Allocating memory for use by programs
  2. Allocating CPU time for use by programs
  3. Creating menus in GUI programs
  4. Controlling access to the hard drive

3. Creating menus in GUI programs


Q2. Which of the following is an example of an embedded Linux OS?

  1. Android
  2. SUSE
  3. CentOS
  4. Debian

1. Android


Q3. What command is used to remove the directory?

  1. rdir
  2. remove
  3. rd
  4. rmdir

4. rmdir


Q4. What command is used with vi editor to delete a single character?

  1. x
  2. y
  3. a
  4. z

1. x


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

  1. grep
  2. mail
  3. mesg
  4. write

1. grep


Q6. The location for subdirectories for local programs and executables for user and administrative commands, is:

  1. /usr
  2. /tmp
  3. /opt
  4. /mnt

1. /usr


Q7. What command is used with file named ‘letter’ to remove the executable permission from the user and assign read permission to the group and others?

  1. chmod go + x, u – x letter
  2. chmod g – x, uo + r letter
  3. chmod go + r, u + x letter
  4. chmod u – x, go + r letter
You May Also Like :   Windows Operating System MCQ Questions with Answer

4. chmod u – x, go + r letter


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

  1. chmod ugo + x letter
  2. chmod u + x letter
  3. chmod u + w letter
  4. chmod g + x letter

2. chmod u + x letter


Q9. Which of the following commands will print lines from the file world.txt that contain matches to changes and changed?

  1. grep change[ds] world.txt
  2. tar change[d-s] world.txt
  3. find “change’d|s'” world.txt
  4. cat world.txt changes changed

1. grep change[ds] world.txt


Q10. What command would you type (as root) to change the ownership of somefile .txt from ralph to tony?

  1. chown ralph:tony somefile.txt
  2. chmod somefile.txt tony
  3. chown somefile.txt tony
  4. chown tony somefile.txt

4. chown tony somefile.txt


Linux MCQ Quiz and Online Test:

These Linux MCQ practice sets gives you the feeling of reality and a clue to the questions asked in the actual Linux related exams. When you solve these MCQ questions practically, you come across many difficulties that give you an opportunity to improve.

4.5/5 - (13 votes)
Scroll to Top