Linux MCQs with answers Page - 83

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. In the /etc/syslog.conf file, which character is used to increase the speed of system logging?

  • (A) *
  • (B) =
  • (C) !
  • (D) –

A

Admin • 833.24K Points
Coach

Q. Which file is used to specify message levels that are displayed using the dmesg command?

  • (A) dmesg.h
  • (B) kernel.conf
  • (C) kernel.h
  • (D) dmesg.conf

A

Admin • 833.24K Points
Coach

Q. Core files are viewed using which of the following?

  • (A) dumpview
  • (B) gbd
  • (C) debug
  • (D) coreview

A

Admin • 833.24K Points
Coach

Q. Which command would be used to view the queue for all printers?

  • (A) lprm status all
  • (B) lpc status all
  • (C) lpq status all
  • (D) lpd status all

A

Admin • 833.24K Points
Coach

Q. Which of the following spools print jobs to the print device?

  • (A) lpr
  • (B) lpd
  • (C) lpc
  • (D) lpq

A

Admin • 833.24K Points
Coach

Q. Which command would be used to print the file mydoc.txt to the printer named hplj?

  • (A) lpr -Phplj mydoc.txt
  • (B) cat mydoc.txt | lpr hplj
  • (C) print -Phplj mydoc.txt
  • (D) lpr mydoc.txt

A

Admin • 833.24K Points
Coach

Q. Which command should be used to restart the lpd daemon?

  • (A) kill -1 lpd
  • (B) /etc/init.d/lpd stop | start
  • (C) /usr/sbin/lpd restart
  • (D) /etc/rc.d/init.d/lpd restart

A

Admin • 833.24K Points
Coach

Q. Which of the following is used to define a filter in the /etc/printcap file?

  • (A) if
  • (B) fi
  • (C) filter
  • (D) of

A

Admin • 833.24K Points
Coach

Q. Which command is used to move a print job to the top of the queue?

  • (A) lpr
  • (B) lpq
  • (C) lprm
  • (D) lpc

A

Admin • 833.24K Points
Coach

Q. Which definition in /etc/printcap disables print banners?

  • (A) :hs:
  • (B) :nh:
  • (C) :nb:
  • (D) :sh:

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