Linux MCQs with answers Page - 62

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 command is the best to use to find a contact name for another domain?

  • (A) dig
  • (B) whois
  • (C) whoinfo
  • (D) nslookup

A

Admin • 833.24K Points
Coach

Q. Which command(s) is/are used to enable shadow passwords?

  • (A) grpconv
  • (B) pwconv
  • (C) pw-conv
  • (D) Both A and B

A

Admin • 833.24K Points
Coach

Q. Which command displays the output of the utmp file?

  • (A) when
  • (B) last
  • (C) who
  • (D) what

A

Admin • 833.24K Points
Coach

Q. The _______ tool is used to control the Apache httpd service.

  • (A) apachectl
  • (B) htmgr
  • (C) httpdctl
  • (D) apached

A

Admin • 833.24K Points
Coach

Q. Which command displays queue information for all local printers?

  • (A) lpq -v
  • (B) printq
  • (C) lpc -a
  • (D) lpq -a

A

Admin • 833.24K Points
Coach

Q. Which disk partitioning tool provides a GUI?

  • (A) gnodisk
  • (B) Disk Druid
  • (C) cfdisk
  • (D) fdisk

A

Admin • 833.24K Points
Coach

Q. Which command in vi searches for the text Linux?

  • (A) /Linux
  • (B) Linux
  • (C) ESC, f, Linux
  • (D) ESC, s, Linux

A

Admin • 833.24K Points
Coach

Q. Which command must be run when a new mail alias is added?

  • (A) kill -1 `cat /var/run/sendmail.pid`
  • (B) genaliases
  • (C) newaliases
  • (D) newalias

A

Admin • 833.24K Points
Coach

Q. ou want to make the directory /share available via NFS. All users on your local network should be allowed to read and write files. Which of the following is correct, assuming that your local network is 192.168.1.0 and your machine is part of the DNS domain mydomain.org?

  • (A) /local ALL.mydomain.org(rw)
  • (B) /local *.org(rw)
  • (C) /local 192.168.1.0/*(rw)
  • (D) /local 192.168.1.0/255.255.255.0(rw)

A

Admin • 833.24K Points
Coach

Q. Which of the following are used to redirect stdout and stderr to a file?

  • (A) &&
  • (B) |&
  • (C) >&
  • (D) <&

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