Linux MCQs with answers Page - 170

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. What does the 'uptime' command display?

  • (A) System load average
  • (B) Time since last reboot
  • (C) Current time
  • (D) All of the above

D

Dhruva Jagannath • 660 Points
Invincible

Q. Which command is used to display file contents in hexadecimal and ASCII format?

  • (A) xxd
  • (B) hexdump
  • (C) od
  • (D) All of the above

D

Dhruva Jagannath • 660 Points
Invincible

Q. Which environment variable stores the current user's home directory?

  • (A) $DIR
  • (B) $ROOT
  • (C) $HOME
  • (D) $USERDIR

D

Dhruva Jagannath • 660 Points
Invincible

Q. Which of the following commands is used to print the calendar in Linux?

  • (A) date
  • (B) cal
  • (C) calendar
  • (D) clock

D

Dhruva Jagannath • 660 Points
Invincible

Q. Which command is used to extract .tar.bz2 files?

  • (A) tar -xvf file.tar.bz2
  • (B) tar -xvjf file.tar.bz2
  • (C) unzip file.tar.bz2
  • (D) bz2 -x file.tar.bz2

D

Dhruva Jagannath • 660 Points
Invincible

Q. Which of the following commands is used to install a package in Debian-based systems?

  • (A) yum install
  • (B) apt install
  • (C) dnf install
  • (D) pkg install

D

Dhruva Jagannath • 660 Points
Invincible

Q. Which command shows the routing table in Linux?

  • (A) route
  • (B) ip route
  • (C) netstat -r
  • (D) All of the above

D

Dhruva Jagannath • 660 Points
Invincible

Q. Which of the following is not a valid file permission?

  • (A) rwx
  • (B) rw-
  • (C) r--
  • (D) wxx

D

Dhruva Jagannath • 660 Points
Invincible

Q. What does 'uname -a' display?

  • (A) Only the kernel name
  • (B) Only the hostname
  • (C) All system information
  • (D) System uptime

D

Dhruva Jagannath • 660 Points
Invincible

Q. Which command is used to check open ports and listening services?

  • (A) lsof -i
  • (B) netstat -tuln
  • (C) ss -tuln
  • (D) All of the above

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