Linux MCQs with answers Page - 21

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 Linux command is used to record a user login session in a file?

  • (A) script
  • (B) style
  • (C) log
  • (D) record

A

Admin • 833.24K Points
Coach

Q. Which Linux command is used to display the operating system name?

  • (A) os
  • (B) osname
  • (C) osinfo
  • (D) uname

A

Admin • 833.24K Points
Coach

Q. Which Linux command is used to print a file?

  • (A) lp
  • (B) pr
  • (C) print
  • (D) ptr

A

Admin • 833.24K Points
Coach

Q. Which is the correct syntax to print the file using the default printer in Linux?

  • (A) lp [printer_name] [path or filename]
  • (B) lp -a [printer_name] [path or filename]
  • (C) lp -d [printer_name] [path or filename]
  • (D) lp -d [path or filename] [printer_name]

A

Admin • 833.24K Points
Coach

Q. Which is the correct syntax to print the file using the default printer with multiple copies in Linux?

  • (A) lp -d -n [printer_name] [path or filename]
  • (B) lp -d -n 5[printer_name] [path or filename]
  • (C) lp -d [printer_name] -n [path or filename]
  • (D) lp -d [printer_name] -n 5 [path or filename]

A

Admin • 833.24K Points
Coach

Q. Which argument and value with "lp" command specify the page orientation while printing a file?

  • (A) -o landscape/portrait
  • (B) -o l/p
  • (C) -o land/prt
  • (D) -or landscape/portrait

A

Admin • 833.24K Points
Coach

Q. Which Linux command is used to identify file type?

  • (A) file
  • (B) type
  • (C) info
  • (D) finfo

A

Admin • 833.24K Points
Coach

Q. How many types of users are in Linux?

  • (A) 2
  • (B) 3
  • (C) 4
  • (D) 5

A

Admin • 833.24K Points
Coach

Q. How many types of basic permissions to grant a user?

  • (A) 2
  • (B) 3
  • (C) 4
  • (D) 5

A

Admin • 833.24K Points
Coach

Q. The ___ command in Linux is used to convert the content of input in different formats with the octal format as the default format.

  • (A) od
  • (B) oct
  • (C) o_d
  • (D) octal

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