Home

Linux Operating System MCQ Question with Answer

Linux Operating System MCQ with detailed explanation for interview, entrance and competitive exams. Explanation are given for understanding.

Download Linux Operating System MCQ Question Answer PDF

Try Linux Operating System Mock Test

Question No : 29
Suppose that a text file abc.txt that contains multiple lines, then how to print all complete lines with line numbers using AWK?

awk '{print NS,$1}' abc.txt
awk '{print NR,$0}' abc.txt
awk '{print NR,$1}' abc.txt
awk '{print NS,$1}' abc.txt

Question No : 30
Which exact command is used to set subnet mask in the Linux operating system?

ifconfig subnet
ifconfig subnet
ifconfig netmask
ifconfig netmask

Question No : 31
Which of the following types of arguments or operators are supported by expr command?
a) Plus '+' operator
b) Modulus operator
c) Regular expressions
d) Set of characters in the string
Options:

A and C
A and B
A, B, and C
A, B, C, and D

Question No : 32
Which exact command is used to see the permissions of a file in the Linux operating system?

perms
file -perm
ls -l
ls -perm

Question No : 33
In Linux, the sed stands for?

String Editor
Stream Editor
Simple Editor
Single Editor

Question No : 34
What is the file system?

The file system is part of the Linux kernel which is used to call boot loader.
A file system is a user program to copy files from one location to another programs.
The file system is part of Linux OS which is used to arrange files and directories.
None of the above

Question No : 35
Which of the following command is used to print the number of lines that exist in the specified file?

awk 'END { print NL }'
awk 'END { print N }'
awk 'END { print NR }'
awk 'END { print NN }'

Wanna test your skill? Here are some exams we prepared for you. So if you need to test your skill just attempt any exam from bellow.

Exam Name No. Of Q Link
Computer set 1 30 Start
Computer set 2 30 Start
Computer set 3 30 Start
Computer set 4 30 Start
Computer set 5 30 Start
Computer set 6 30 Start
Computer set 7 30 Start
Computer set 8 30 Start
Computer set 9 30 Start
Computer set 10 30 Start
Computer set 11 30 Start
Computer set 12 30 Start