Linux MCQs with answers Page - 56

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 displays a listing of previously entered commands?

  • (A) export
  • (B) history
  • (C) review
  • (D) commands

A

Admin • 833.24K Points
Coach

Q. Which key allows you to view the last command entered?

  • (A) left arrow
  • (B) right arrow
  • (C) up arrow
  • (D) down arrow

A

Admin • 833.24K Points
Coach

Q. Which command allows you to use the default editor to edit several commands from the history file?

  • (A) view
  • (B) fc
  • (C) edit
  • (D) history

A

Admin • 833.24K Points
Coach

Q. It is possible to run commands that are not located in a directory listed in the PATH if you know the full path and command name.

  • (A) True
  • (B) False
  • (C) NA
  • (D) NA

A

Admin • 833.24K Points
Coach

Q. Which script is run when X Window starts?

  • (A) .xinit
  • (B) .xrc
  • (C) .startxrc
  • (D) .xinitrc

A

Admin • 833.24K Points
Coach

Q. Which command adds a new default route to the system?

  • (A) ifconfig add 0.0.0.0 mask 255.255.255.0 gw 1.2.3.4
  • (B) route add default gw 1.2.3.4
  • (C) route add gw 1.2.3.4
  • (D) ifconfig add default gw 1.2.3.4

A

Admin • 833.24K Points
Coach

Q. Dave is going away on vacation for two weeks and wants his mail forwarded to Sue while he is away. Which change should he make?

  • (A) Add a rule to pine to forward the mail.
  • (B) Add “sue” to ~/.aliases.
  • (C) Add “sue” to ~/.forward.
  • (D) Add “sue” to /etc/aliases.

A

Admin • 833.24K Points
Coach

Q. The Samba daemon responsible for handling name resolution is which of the following?

  • (A) named
  • (B) winsd
  • (C) smbd
  • (D) nmbd

A

Admin • 833.24K Points
Coach

Q. Which command should be used to allow the host norbert to connect to the local X server?

  • (A) rhosts +norbert
  • (B) xhost +norbert
  • (C) cat norbert > .rhosts
  • (D) xhost +

A

Admin • 833.24K Points
Coach

Q. You have just configured a new mail server named deathstar. Which entry should you make into DNS to make this the primary mail server?

  • (A) IN MX 0 deathstar
  • (B) IN MX 10 deathstar
  • (C) IN MX 20 deathstar
  • (D) IN MX 100 deathstar

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