Linux MCQs with answers Page - 66

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. The umask of 002 would produce what default file permissions?

  • (A) -rwxrwxr-x
  • (B) ———x
  • (C) -rw-rw-r–
  • (D) -rwxrwxrw-

A

Admin • 833.24K Points
Coach

Q. What access rights are required for the /etc/shadow file?

  • (A) -rwxr–r–
  • (B) -r–r—–
  • (C) -rw-rw-r–
  • (D) -r——–

A

Admin • 833.24K Points
Coach

Q. Which command will immediately shut down a computer running Linux?

  • (A) telinit 0
  • (B) shutdown now
  • (C) telinit 6
  • (D) shutdown

A

Admin • 833.24K Points
Coach

Q. A new user (Debbie) needs access to the companies Linux system, what must be done so that she can access the system with the userid debbie?
A. useradd debbie
B. group debbie
C. shadow debbie
D. passwd debbie

  • (A) Only A
  • (B) B and C
  • (C) A and D
  • (D) A, C and D

A

Admin • 833.24K Points
Coach

Q. Which command would give the owner and group of myfile the permissions of read and execute while all others have read access?

  • (A) chmod 662 myfile
  • (B) chmod 331 myfile
  • (C) chmod 554 myfile
  • (D) chmod 003 myfile

A

Admin • 833.24K Points
Coach

Q. Which command would be used to view a description of the tar utility including the options available for use?

  • (A) help tar
  • (B) man tar
  • (C) grep tar
  • (D) more tar

A

Admin • 833.24K Points
Coach

Q. The PS1 environment variable is used to define which of the following?

  • (A) signature file
  • (B) shell prompt
  • (C) home directory
  • (D) command path

A

Admin • 833.24K Points
Coach

Q. Which of the following would change the user’s pwd to their home directory regardless of their current pwd?
A. cd
B. cd ..
C. cd~
D. cd $HOME

  • (A) A and B
  • (B) B and C
  • (C) C and D
  • (D) A, C and D

A

Admin • 833.24K Points
Coach

Q. Which of the following directories is used to store system utilities used by the superuser?

  • (A) /etc
  • (B) /root
  • (C) /sbin
  • (D) /usr/local

A

Admin • 833.24K Points
Coach

Q. Where are the user shells assigned?

  • (A) LILO
  • (B) /etc/profile
  • (C) /etc/passwd
  • (D) /etc/skel

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