Linux MCQs with answers Page - 61

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. You are told by a co-worker that information pertaining to the syslog command can be found in man page 3. How would you view this information?

  • (A) man 3 syslog
  • (B) man -3 syslog
  • (C) man syslog -3
  • (D) man syslog 3

A

Admin • 833.24K Points
Coach

Q. Which command is not used to view the contents of a file?

  • (A) expand
  • (B) less
  • (C) more
  • (D) cat

A

Admin • 833.24K Points
Coach

Q. What type of information might you find using www.deja.com?

  • (A) kernel updates
  • (B) software patches
  • (C) Usenet postings
  • (D) man pages

A

Admin • 833.24K Points
Coach

Q. Which directory utilizes no disk space?

  • (A) /local
  • (B) /root
  • (C) /boot
  • (D) /proc

A

Admin • 833.24K Points
Coach

Q. Which command would create a file called mydirlisting that includes a detailed listing of all the files and directories located within your home directory?

  • (A) ls -al | mydirlisting
  • (B) mydirlisting < ls -al $HOME
  • (C) ls -d > mydirlisting
  • (D) ls -alR $HOME > mydirlisting

A

Admin • 833.24K Points
Coach

Q. You’re repairing the master boot record on a system. You have booted the system via a boot disk and currently have the root volume mounted to /recover. How would you reinstall LILO?

  • (A) lilo -r /recover -b /recover/boot
  • (B) lilo -r /recover
  • (C) lilo -f /recover
  • (D) lilo -r /recover/boot

A

Admin • 833.24K Points
Coach

Q. Which command removes a package named editor-2.0.i386.rpm?

  • (A) apt-get install editor-2.0.i386.rpm
  • (B) dpkg -install editor-2.0.i386.rpm
  • (C) rpm -e editor-2.0.i386.rpm
  • (D) rpm -i editor-2.0.i386.rpm

A

Admin • 833.24K Points
Coach

Q. To make a single change to the kernel configuration before compiling, you would edit which file?

  • (A) /usr/src/linux/configure
  • (B) /usr/src/linux/config
  • (C) /usr/src/linux/.config
  • (D) /usr/src/linux/Makefile

A

Admin • 833.24K Points
Coach

Q. Which command will tell you which package owns the file /etc/printcap?

  • (A) rpm -qf /etc/printcap
  • (B) who /etc/printcap
  • (C) rpm -f /etc/printcap
  • (D) dpkg -F /etc/printcap

A

Admin • 833.24K Points
Coach

Q. Which command shows the route between your host and the remote host www.somedomain.org?

  • (A) route -n www.somedomain.org
  • (B) ping -r www.somedomain.org
  • (C) route www.somedomain.org
  • (D) traceroute -n www.somedomain.org

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