Linux MCQs with answers Page - 43

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 is used to assign only read permission to all three categories of the file ‘note’?

  • (A) chmodu+r, g+r, o-x note
  • (B) chmodugo = r = note
  • (C) chmodgo+r note
  • (D) chmod a-rw

A

Admin • 833.24K Points
Coach

Q. Which command is used to make all files and sub-directories in the directory (prog) executable by all users?

  • (A) chmod –R 222 progs
  • (B) chmod -1 a+xprogs
  • (C) chmod –x a+xprogs
  • (D) chmod –R a+xprogs

A

Admin • 833.24K Points
Coach

Q. The chmodugo+rw note command can be represented in octal notation as

  • (A) chmod 333 note
  • (B) chmod 444 note
  • (C) chmod 666 note
  • (D) chmod 555 note

A

Admin • 833.24K Points
Coach

Q. Which of the following commands is used to view the file 24 lines at a time?

  • (A) /p
  • (B) cat
  • (C) 1p
  • (D) pg

A

Admin • 833.24K Points
Coach

Q. The second set of the three permissions (r-) indicates that

  • (A) owner has read permission only
  • (B) group has write permission only
  • (C) other has read permission only
  • (D) group has read permission only

A

Admin • 833.24K Points
Coach

Q. The command “mknodmyfifo b 4 16”

  • (A) Will create a block device if user is root
  • (B) Will create a block device for all users
  • (C) Will create a FIFO if user is not root
  • (D) None of the above

A

Admin • 833.24K Points
Coach

Q. Which command is used to record a user login session in a file ?

  • (A) read
  • (B) script
  • (C) macro
  • (D) none of the above

A

Admin • 833.24K Points
Coach

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

  • (A) uname
  • (B) kernel
  • (C) Unix
  • (D) os

A

Admin • 833.24K Points
Coach

Q. Which command is used to display the unix version ?

  • (A) kernel
  • (B) uname -t
  • (C) uname -n
  • (D) uname -r

A

Admin • 833.24K Points
Coach

Q. Which command is used to print a file ?

  • (A) print
  • (B) ptr
  • (C) lpr
  • (D) none of the above