Multiple Choice Questions(MCQs) and Answers on Linux | Linux questions with answers

Questions
1 wtmp and utmp files contain:
A Temporary system data
B User login-logout log
C The user’s command execution log
D The user’s su and sudo attempts

Answer: Option [B]
2 Which is the core of the operating system?
A Shell
B Kernel
C Commands
D Script

Answer: Option [B]
3 ILP32 stands for
A 32 bit Integer, Long & Pointer
B 32 bit Integrated Long & Pointer
C 32 bit Intelligent Long & Pointer
D 32 bit Long & Pointer

Answer: Option [A]
4 Single Unix Specification Version 2 provides enhanced support for
A 16 bit Unix
B 32 bit Unix
C 64 bit Unix
D 8 bit Unix

Answer: Option [C]
5 Under UNIX the key board is the default input device and the monitor is the default output device
A True
B False
C not true or false
D Can't be determined

Answer: Option [A]
6 Which among the following interacts directly with system hardware?
A Shell
B Commands
C Kernel
D Applications

Answer: Option [C]
7 Applications communicate with kernel by using:
A System Calls
B C Programs
C Shell Script
D Shell

Answer: Option [A]
8 The dmesg command
A Shows user login logoff attempts
B Shows the syslog file for info messages
C kernel log messages
D Shows the daemon log messages

Answer: Option [C]
9 The command “mknod myfifo 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

Answer: Option [A]
10 Which command is used to set terminal IO characteristic?
A tty
B ctty
C ptty
D stty

Answer: Option [D]
11 Which command is used to record a user login session in a file
A macro
B read
C script
D none of the above

Answer: Option [C]
12 Which command is used to display the operating system name
A os
B Unix
C kernel
D uname

Answer: Option [D]
13 Which command is used to display the unix version
A uname -r
B uname -n
C uname -t
D kernel

Answer: Option [A]
14 Which command is used to print a file
A print
B ptr
C lpr
D none of the above

Answer: Option [C]
15 Using which command you find resource limits to the session?
A rlimit
B ulimit
C setrlimit
D getrlimit

Answer: Option [B]
16 Which option of ls command used to view file inode number
A –l
B -o
C –a
D –i

Answer: Option [D]
17 find / -name ‘*’ will
A List all files and directories recursively starting from /
B List all files and directories recursively starting from /
C List all files in / directory
D List all files and directories in / directory

Answer: Option [A]
18 Which command is used to display the octal value of the text
A octal
B text_oct
C oct
D od

Answer: Option [D]
19 Which command is used to view compressed text file contents
A cat
B type
C zcat
D print

Answer: Option [C]
20 Which command changes a file’s group owner
A cgrp
B chgrp
C change
D group

Answer: Option [B]