Linux MCQs with answers Page - 57

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 would you use to copy the /Documents directory and all subdirectories from the current system to the remote system newman?

  • (A) scp -R root@newman:/ /Documents
  • (B) rcp -R /documents newman:/
  • (C) scp -r /Documents root@newman:/
  • (D) cp -R /Documents newman:/

A

Admin • 833.24K Points
Coach

Q. Which command would update your Debian system to the latest version of all installed packages?

  • (A) apt-get update ; apt-get upgrade
  • (B) apt-get upgrade ; apt-get update
  • (C) apt-get refresh
  • (D) apt get update ; apt get upgrade

A

Admin • 833.24K Points
Coach

Q. Which of the following directories should be on their own partition?
A. /usr
B. /boot
C. /home
D. /tmp

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

A

Admin • 833.24K Points
Coach

Q. Which command(s) would be used to display which kernel packages are installed on your system?

  • (A) dpkg -l | grep kernel
  • (B) dpkg -l kernel
  • (C) rpm -qa | grep kernel
  • (D) Both A and C

A

Admin • 833.24K Points
Coach

Q. To use the X11 graphical interface to make a kernel configuration, you would use which of the following?

  • (A) make tclconfig
  • (B) make menuconfig
  • (C) make xconfig
  • (D) make gconfig

A

Admin • 833.24K Points
Coach

Q. If you want to remotely display an X Window application to another system, which option would you use?

  • (A) -display
  • (B) -connect
  • (C) -remote
  • (D) -xhost

A

Admin • 833.24K Points
Coach

Q. You have a Red Hat system that currently boots in text mode. Which file do you need to modify to have it boot in GUI mode?

  • (A) /etc/xdm
  • (B) /etc/inittab
  • (C) /etc/init.conf
  • (D) /etc/runlevel

A

Admin • 833.24K Points
Coach

Q. The first line of a shell script should be which of the following?

  • (A) #!/bin/bash
  • (B) #!/usr/bin/bash
  • (C) #!bash
  • (D) !#/bin/sh

A

Admin • 833.24K Points
Coach

Q. When examining the network logs for the firewall, you notice a lot of connection attempts to port 110. Which service may your remote users be trying to use?

  • (A) SMTP
  • (B) POP3
  • (C) DNS
  • (D) IMAP

A

Admin • 833.24K Points
Coach

Q. You need to access a resource named Documents shared by the NFS server bigserver. Which command would you use?

  • (A) nfsmount bigserver:Documents /mnt/docs
  • (B) mount -t nfs bigserver:/Documents /mnt/docs
  • (C) mount bigserver:Documents /mnt/docs
  • (D) mount -t nfs //bigserver/Documents /mnt/docs

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