Linux MCQs with answers Page - 171

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

D

Dhruva Jagannath • 660 Points
Invincible

Q. Which command can display the current runlevel of a Linux system?

  • (A) who -r
  • (B) runlevel
  • (C) systemctl get-default
  • (D) All of the above

D

Dhruva Jagannath • 660 Points
Invincible

Q. Which Linux file contains mounted file systems at boot time?

  • (A) /etc/mount
  • (B) /etc/fstab
  • (C) /etc/mounted
  • (D) /boot/fstab

D

Dhruva Jagannath • 660 Points
Invincible

Q. What is the purpose of the 'nice' command?

  • (A) Schedules a shutdown
  • (B) Sets the I/O priority of a process
  • (C) Sets the CPU priority of a process
  • (D) Kills a process nicely

D

Dhruva Jagannath • 660 Points
Invincible

Q. What is the effect of using 'rm -rf /' as root?

  • (A) Deletes the /tmp directory
  • (B) Formats the disk
  • (C) Deletes all files and directories on the system
  • (D) Nothing

D

Dhruva Jagannath • 660 Points
Invincible

Q. What does the '&' symbol do when added to the end of a command?

  • (A) Redirects output to a file
  • (B) Runs the command as administrator
  • (C) Runs the command in the background
  • (D) Repeats the command