Linux MCQs with answers Page - 79

Here, you will find a collection of MCQ questions on Linux. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833.24K Points
Coach

Q. Which of the following is not stored in the /etc/passwd file?

  • (A) Quotas
  • (B) User ID
  • (C) Shell assignment
  • (D) Home directory path

A

Admin • 833.24K Points
Coach

Q. Files located in which file are copied to users’ home directories?

  • (A) /etc/user
  • (B) /etc/skel
  • (C) /etc/passwd
  • (D) /etc/group

A

Admin • 833.24K Points
Coach

Q. Which option with the useradd command specifies that the home directory should be created if it doesn’t already exist?

  • (A) -d
  • (B) -c
  • (C) -m
  • (D) -h

A

Admin • 833.24K Points
Coach

Q. Which option is used with userdel to remove a user’s home directory as the account is removed?

  • (A) -e
  • (B) -r
  • (C) -h
  • (D) -d

A

Admin • 833.24K Points
Coach

Q. Which option with usermod is used to change a user’s default shell?

  • (A) -q
  • (B) -b
  • (C) -s
  • (D) -d

A

Admin • 833.24K Points
Coach

Q. The default umask used on the system is configured in which file?

  • (A) /etc/files
  • (B) /etc/passwd
  • (C) /etc/profile
  • (D) /etc/bash

A

Admin • 833.24K Points
Coach

Q. Which type of access is granted to all users for the /etc/passwd file?

  • (A) Write
  • (B) No access
  • (C) Execute
  • (D) Read

A

Admin • 833.24K Points
Coach

Q. Which type of access is granted to other users for the /etc/shadow file?

  • (A) Write
  • (B) No access
  • (C) Execute
  • (D) Read

A

Admin • 833.24K Points
Coach

Q. Which command allows users to view their group memberships?

  • (A) newgrp
  • (B) groups
  • (C) newgroup
  • (D) groupadd

A

Admin • 833.24K Points
Coach

Q. Where are system startup scripts stored on a Red Hat–based system?

  • (A) /etc/rc.d/init.d
  • (B) /etc/init.d
  • (C) /etc/rc.d/rc3.d
  • (D) /etc

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ