Google News
logo
Linux - Quiz(MCQ)

Linux : Linux is a family of open-source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991, by Linus Torvalds.

Linux is typically packaged as a Linux distribution (distro), which includes the kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses and recommends the name "GNU/Linux" to emphasize the use and importance of GNU software in many distributions, causing some controversy.

Popular Linux distributions include Debian, Fedora Linux, and Ubuntu. Commercial distributions include Red Hat Enterprise Linux and SUSE Linux Enterprise. Desktop Linux distributions include a windowing system such as X11 or Wayland, and a desktop environment such as GNOME or KDE Plasma. Distributions intended for servers may omit graphics altogether, or include a solution stack such as LAMP. Because Linux is freely redistributable, anyone may create a distribution for any purpose.

Linux was originally developed for personal computers based on the Intel x86 architecture, but has since been ported to more platforms than any other operating system.. Wikipedia

A)
Linus Torvalds
B)
Richard Stallman
C)
Linus Torvalds and Ken Thompson
D)
Ken Thompson and Dennis Ritchie

Correct Answer :   Linus Torvalds


Explanation : Linus Torvalds founded Linux Kernel.

A)
Terminal
B)
Kernel
C)
Vi Editor
D)
Command Line

Correct Answer :   Kernel


Explanation : The kernel is the core of the Linux operating system.

A)
WC
B)
wcount
C)
countw
D)
None of the above

Correct Answer :   WC


Explanation : wc is used to count the total number of lines, words, and characters contained in a file.

A)
dm
B)
delete
C)
rm
D)
erase

Correct Answer :   rm

A)
Alpha
B)
Macintosh
C)
SPARC
D)
IBM-compatible

Correct Answer :   Macintosh


Explanation : Macintosh is not supported by Red Hat.

A)
a
B)
z
C)
y
D)
x

Correct Answer :   x


Explanation : x is used with vi editors to delete a single character.

A)
kernel log messages
B)
Shows user login logoff attempts
C)
Shows the daemon log messages
D)
Shows the syslog file for info messages

Correct Answer :   kernel log messages

A)
Will create a FIFO if user is not root
B)
Will create a block device for all users
C)
Both (A) and (B)
D)
Will create a block device if user is root

Correct Answer :   Will create a block device if user is root

A)
tty
B)
ctty
C)
stty
D)
ptty

Correct Answer :   stty

A)
read
B)
script
C)
macro
D)
None of the above

Correct Answer :   script

A)
os
B)
unix
C)
kernel
D)
uname

Correct Answer :   uname

A)
rd
B)
rmdir
C)
rdir
D)
remove

Correct Answer :   rmdir

A)
/bin
B)
/lib
C)
/opt
D)
All of the above

Correct Answer :   All of the above


Explanation : Binary directory contains following directories :

/bin
/lib
/opt
/sbin

A)
/
B)
~
C)
#
D)
@

Correct Answer :   /


Explanation : The symbol "/" represents the top-level directory.

A)
/
B)
#
C)
~
D)
@

Correct Answer :   ~


Explanation : The symbol "~" represents the user's home directory.

A)
cwd
B)
help
C)
pwd
D)
know

Correct Answer :   pwd


Explanation : To know which directory you are in, the "pwd" command can be used. The "pwd" command stands for "Present Working Directory". This command gives us the absolute path, which means the path that starts from the root.

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

Correct Answer :   uname -r

A)
ptr
B)
lpr
C)
print
D)
None of the above

Correct Answer :   lpr

A)
List a file named * in /
B)
List all files in / directory
C)
List all files and directories in / directory
D)
List all files and directories recursively starting from /

Correct Answer :   List all files and directories recursively starting from /

A)
ulimit
B)
rlimit
C)
setrlimit
D)
getrlimit

Correct Answer :   ulimit

A)
–i
B)
-o
C)
–a
D)
–l

Correct Answer :   –i

A)
controls error detection and correction
B)
constructs packets of data and sends them across the network
C)
defines the electrical characteristics of signals passed between the computer and communication devices
D)
All of the above

Correct Answer :   defines the electrical characteristics of signals passed between the computer and communication devices

A)
FTP
B)
UDP
C)
RARP
D)
TELNET

Correct Answer :   TELNET

A)
127 networks and 16,777,216 nodes per network
B)
16,384 networks and 65,534 nodes per network
C)
2,097,152 networks and 254 nodes per network
D)
All of the above

Correct Answer :   16,384 networks and 65,534 nodes per network

A)
NIS
B)
DNS
C)
NFS
D)
SMB

Correct Answer :   DNS

A)
dd and rawrite
B)
bootfp disk
C)
mkboot disk
D)
ww and rawwrite

Correct Answer :   dd and rawrite

A)
/mail
B)
/etc/log
C)
/var/log
D)
All of the above

Correct Answer :   /var/log

A)
ed
B)
cat
C)
vi
D)
lyrix

Correct Answer :   cat

A)
mv
B)
ren
C)
remove
D)
change

Correct Answer :   mv

A)
cat
B)
more
C)
grep
D)
head

Correct Answer :   head

A)
sh
B)
st
C)
sort
D)
sort - r

Correct Answer :   sort - r

A)
lp
B)
pg
C)
prn
D)
print

Correct Answer :   lp

A)
chmod 167 letter
B)
chmod a = 761 letter
C)
chmod u = rwx, g = rw, o = x letter
D)
chmod 4=7, g = 6, o = 1 letter

Correct Answer :   chmod u = rwx, g = rw, o = x letter

A)
8-bit addresses
B)
16-bit addresses
C)
32-bit addresses
D)
64-bit addresses

Correct Answer :   32-bit addresses

A)
FTP
B)
TFTP
C)
RARP
D)
TELNET

Correct Answer :   TFTP

A)
ls
B)
ls -h
C)
dir -a
D)
ls -a

Correct Answer :   ls -a


Explanation : The "ls" command with argument "-a" can be used to see all the hidden files.

A)
ls -F
B)
ls -a
C)
ls -h
D)
dir -a

Correct Answer :   ls -F


Explanation : The "ls -F" command is used to see a full listing, indicating what type files are by putting a slash after directories and a star after executable files.

A)
cd..
B)
cd
C)
cd/
D)
chdir

Correct Answer :   cd..


Explanation : To go back from a folder to the folder before that, we can use the Linux command "cd .." . Here, the two dots (..) represent back.

A)
md XYZ
B)
cd XYZ
C)
mkdir XYZ
D)
chdir XYZ

Correct Answer :   mkdir XYZ


Explanation : To create a new directory named XYZ, we can use "mkdir XYZ". The "mkdir" command is used to make a directory in Linux.

A)
tch
B)
touch
C)
file
D)
create

Correct Answer :   touch


Explanation : The "touch" command is used to create a file.

A)
cp
B)
fcp
C)
copy
D)
filecopy

Correct Answer :   cp


Explanation : The "cp" command is used to copy files through the command line.

A)
ren
B)
mv
C)
loc
D)
move

Correct Answer :   mv


Explanation : The "mv" command is used to move files through the command line.

A)
mv pqr.txt abc.txt
B)
mv -a pqr.txt abc.txt
C)
mv abc.txt pqr.txt
D)
mv -all pqr.txt abc.txt

Correct Answer :   mv abc.txt pqr.txt


Explanation : The correct command syntax to rename a file "abc.txt" to "pqr.txt" is:

mv abc.txt pqr.txt​

A)
Using useradd
B)
Using adduser
C)
Using linuxconf
D)
All of the above

Correct Answer :   All of the above

A)
/etc/hosts
B)
/etc/nsorder
C)
/etc/services
D)
/etc/nsswitch.conf

Correct Answer :   /etc/nsswitch.conf

A)
1
B)
2
C)
4
D)
16

Correct Answer :   4

A)
/usr/tmp
B)
/etc/skel
C)
/etc/users
D)
/etc/default

Correct Answer :   /etc/skel

A)
rpm -i ipchains* .i386.rpm
B)
rpm -Uvh ipchains
C)
rpm -qip ipchains
D)
rpm -e ipchains-1.3.9-5.i386.rpm

Correct Answer :   rpm -i ipchains* .i386.rpm

A)
File Server First
B)
First Serve First
C)
Free Software File
D)
Free Software Foundation

Correct Answer :   Free Software Foundation

A)
mount /mnt/cdrom
B)
mount /dev/cdrom
C)
mount -t iso9660 /dev/cdrom / mnt/cdrom
D)
All of the above

Correct Answer :   All of the above

A)
fsck
B)
fdisk
C)
mkfs
D)
mount

Correct Answer :   mkfs

A)
lc
B)
wc - l
C)
cl
D)
count

Correct Answer :   wc - l

A)
grep
B)
write
C)
mail
D)
mesg

Correct Answer :   grep

A)
i /4
B)
pwd
C)
which
D)
who am i

Correct Answer :   who am i

55 .
What package group will you select during the custom configuration to enable the machine to communicate with Windows clients?
A)
Dial-up Workstation
B)
IPX/NetWare Connectivity
C)
SMB (Samba) Connectivity
D)
All of the above

Correct Answer :   SMB (Samba) Connectivity

A)
apache.con
B)
httpd.conf
C)
system.ini
D)
/etc/profile

Correct Answer :   httpd.conf

A)
intrc
B)
xinitre
C)
Xchange
D)
switchdesk

Correct Answer :   switchdesk

A)
/sbin/quota
B)
/sbin/quotaon
C)
/sbin/edquota
D)
/sbin/usrquota

Correct Answer :   /sbin/edquota

59 .
In order to increase the amount of memory available for a system, what is the maximum size of a swap partition (with kernel version 2.2.x)?
A)
2GB
B)
128MB
C)
64MB
D)
32MB

Correct Answer :   2GB

A)
/etc/fstab
B)
/etc/filesys
C)
/etc/sysconfig
D)
/etc/mount.sys

Correct Answer :   /etc/fstab

A)
Original System Server
B)
Open Source Software
C)
Open System Software
D)
Original Source Software

Correct Answer :   Open Source Software

A)
FTP
B)
RPC
C)
SMTP
D)
SNMP

Correct Answer :   SMTP

A)
init 0
B)
Ctrl+Alt+Del
C)
Shutdown -t
D)
Shutdown -g -y0

Correct Answer :   init 0

A)
shttp
B)
html
C)
apached
D)
httpd

Correct Answer :   httpd

A)
ORE toolkit
B)
CORBA toolkit
C)
OLE DB toolkit
D)
COM/DCOM toolkit

Correct Answer :   CORBA toolkit

A)
locate
B)
find
C)
findall
D)
search

Correct Answer :   locate


Explanation : In Linux, the "locate" command is used to locate/search a file, just like the search command in Windows.

A)
locate -i *hello*this*
B)
locate -i **hello**this
C)
locate -i *hello*this
D)
locate -i **hello**this**

Correct Answer :   locate -i *hello*this


Explanation : The correct command syntax to locate a file containing the words "hello" and "this":

locate -i *hello*this​

A)
echo
B)
cat
C)
show
D)
display

Correct Answer :   cat


Explanation : The "cat" command is used to display the content of a file in Linux.

A)
sud
B)
super
C)
superuser
D)
sudo

Correct Answer :   sudo


Explanation : If you want any command to be done with administrative or root privileges, you can use the sudo command.

A)
su
B)
super do
C)
superuser do
D)
superuser does

Correct Answer :   superuser do


Explanation : The "sudo" command stands for "superuser do".

A)
df
B)
disk
C)
available
D)
diskspace

Correct Answer :   df


Explanation : To see the available disk space in each of the partitions in your system, we can use "df" command.

A)
ls chap*
B)
ls chap[124]
C)
ls chap0[124]
D)
ls - x chap0[124]

Correct Answer :   ls chap[124]

A)
!
B)
$
C)
@
D)
#

Correct Answer :   #

A)
x
B)
:w
C)
q!
D)
:q

Correct Answer :   :w

75 .
What protocol(s) is(are) allowed a user to retrieve her/his mail from the mail server to her/his mail reader?
A)
FTP
B)
MAP
C)
POP3
D)
All of the above

Correct Answer :   POP3

A)
RHAD Labs
B)
XFree86 Project, Inc.
C)
GNOME Project
D)
All of the above

Correct Answer :   XFree86 Project, Inc.

A)
XF86Setup
B)
xf86config
C)
XConfigurator
D)
All of the above

Correct Answer :   XF86Setup

A)
dns
B)
shttp
C)
named
D)
httpd

Correct Answer :   named

A)
2314
B)
3128
C)
4322
D)
7334

Correct Answer :   3128

A)
NFS
B)
SMD
C)
smbserver
D)
smbclient

Correct Answer :   smbclient

A)
rpcinfo
B)
infserv
C)
NFSinfo
D)
serverinfo

Correct Answer :   rpcinfo

A)
General Unix
B)
General Noble Unix
C)
GNU's not Unix
D)
Greek Needed Unix

Correct Answer :   GNU's not Unix

A)
/etc
B)
/dev
C)
/bin
D)
/home

Correct Answer :   /dev

A)
/etc
B)
/bin
C)
/dev
D)
/home

Correct Answer :   /etc

A)
fsck
B)
fdisk
C)
mkfs
D)
mount

Correct Answer :   fdisk

A)
wc
B)
sort
C)
grep
D)
cat

Correct Answer :   cat

A)
cd
B)
of
C)
od
D)
oct

Correct Answer :   od

A)
chmod u + x report
B)
chmod ugo + r report
C)
chmod ugo + x report
D)
chmod ugo + rw report

Correct Answer :   chmod ugo + x report

A)
cd
B)
cdir
C)
chdir
D)
changedir

Correct Answer :   cd

A)
ls | wc
B)
ls | wc - l
C)
ls | ws - c
D)
ls | wc - w

Correct Answer :   ls | wc - l

A)
- - rebuild
B)
- - execute
C)
- - generate
D)
- - recompile

Correct Answer :   - - recompile

A)
126
B)
128
C)
16,382
D)
2,113,658

Correct Answer :   2,113,658

A)
trace
B)
route
C)
ipchains
D)
netstat

Correct Answer :   ipchains

A)
mkkickstart
B)
tar
C)
ghost
D)
bzimage.img

Correct Answer :   mkkickstart

A)
time
B)
SSH
C)
ntalk
D)
finger

Correct Answer :   SSH

A)
Bob Young
B)
Linus Torvalds
C)
Richard Stallman
D)
All of the above

Correct Answer :   Richard Stallman

A)
*
B)
?
C)
[ijk]
D)
[!ijk]

Correct Answer :   ?

A)
net
B)
route
C)
netstat
D)
addroute

Correct Answer :   route

A)
mount
B)
knfsd
C)
nfsmount
D)
All of the above

Correct Answer :   mount

A)
host
B)
comph
C)
hname
D)
hostname

Correct Answer :   hostname


Explanation : The "hostname" command is used to check a computer's hostname in Linux.

A)
host -I
B)
hostname
C)
hostname -I
D)
hostname -i

Correct Answer :   hostname -I


Explanation : The "hostname -I" command gives you your IP address in your network.

A)
ping
B)
check
C)
isconnect
D)
connection

Correct Answer :   ping


Explanation : The "ping" command is used to check your connection to a server.

A)
clr
B)
cls
C)
clean
D)
clear

Correct Answer :   clear


Explanation : The "clear" command is used to clear the terminal if it gets filled up with too many commands.

A)
flush
B)
sync
C)
clearx
D)
fflush

Correct Answer :   sync


Explanation : The "sync" command is used to force all buffers to disk.

A)
zcat
B)
catz
C)
unzip
D)
All of the above

Correct Answer :   zcat


Explanation : Compressed files or zipped files can be viewed with the help of 'zcat' command.

A)
bunzip
B)
bunzip0
C)
bunzip2
D)
bunzip3

Correct Answer :   bunzip2


Explanation : The command "bunzip2" decompresses a file like gunzip command.

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]

Correct Answer :   lp -d [printer_name] [path or filename]


Explanation : The correct syntax to print the file using the default printer in Linux is:

lp -d [Printer_name] [path or filename]​

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

Correct Answer :   lp -d [printer_name] -n 5 [path or filename]


Explanation : The correct syntax to print the file using the default printer with multiple copies in Linux is:

lp -d [printer_name] -n 5 [path or filename]​

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

Correct Answer :   -o landscape/portrait


Explanation : With "ls" command, we can use argument "-0" with value either "landscape" or "portrait" to specify the page orientation. Consider the below command syntax –

lp -d [printer_name] -o landscape/portrait [path or filename]​

A)
3
B)
4
C)
5
D)
6

Correct Answer :   3


Explanation : In Linux, there are three types of users: super users, system users, and regular/normal users.

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

Correct Answer :   3


Explanation : There are three basic permissions to grant a user, they are: read, write, and execute.

112 .
The operators ">" and ">>" are known as ___.
A)
Redirection operators
B)
Exertion operators
C)
Insertion operators
D)
None of the above

Correct Answer :   Redirection operators


Explaination : The operators ">" and ">>" are known as Redirection operators.

A)
CTRL + C
B)
CTRL + Pause/Break
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Both (A) and (B)


Explanation : Both the combination of the keys CTRL + C and CTRL + Pause/Break can be used to terminate the command execution in the command prompt.

114 .
To build a modularized kernel, the kernel-headers and kernel-source packages must first be installed. Where will you find the kernel-headers and kernel-source?
A)
/usr/bin
B)
/usr/src/linux
C)
/usr/local
D)
/usr/sre/redhat

Correct Answer :   /usr/src/linux

A)
/etc/lilo.conf
B)
/boot/lilo.conf
C)
/etc/named.boot
D)
/etc/conf.modules

Correct Answer :   /etc/lilo.conf

A)
user
B)
kara
C)
root
D)
group

Correct Answer :   kara

A)
63 and 64
B)
82 and 83
C)
82 and 85
D)
92 and 93

Correct Answer :   82 and 83

A)
cat
B)
head
C)
grep
D)
tail

Correct Answer :   tail

A)
kill
B)
cancel
C)
haltsys
D)
shutdown

Correct Answer :   kill

A)
3 x
B)
3 dd
C)
3 dw
D)
3$d

Correct Answer :   3 dw

A)
chmod go + r letter
B)
chmod ugo = r letter
C)
chmod a - rw letter
D)
chmod u + r, g + r, o - x letter

Correct Answer :   chmod ugo = r letter

A)
window
B)
cempre
C)
utilinux
D)
switchdesk

Correct Answer :   switchdesk

A)
/etc/ftpusers
B)
/etc/ftpaccess
C)
/etc/hosts.deny
D)
All of the above

Correct Answer :   /etc/ftpusers

A)
link layer
B)
physical layer
C)
network layer
D)
transport layer

Correct Answer :   physical layer

A)
Data-link
B)
Session
C)
Application
D)
Network

Correct Answer :   Application

A)
Ctrl+Alt+Del
B)
Ctrl+Function Key
C)
Alt+Function Key
D)
Alt+a+w+Function Key

Correct Answer :   Alt+Function Key

A)
yppoll
B)
ypcat
C)
ypwhich
D)
ypbind

Correct Answer :   ypbind

A)
/sbin
B)
/var
C)
/proc
D)
/home

Correct Answer :   /sbin

A)
/etc/hosts
B)
/etc/services
C)
/etc/nsorder
D)
/etc/nsswitch.conf/

Correct Answer :   /etc/services

A)
4
B)
5
C)
82
D)
83

Correct Answer :   82

A)
1
B)
2
C)
4
D)
16

Correct Answer :   1

A)
/etc/.log
B)
/etc/.bashrc
C)
/etc/.profile
D)
/etc/profile

Correct Answer :   /etc/profile

A)
rpm -1
B)
rpm -q
C)
rpm -d
D)
rpm -a

Correct Answer :   rpm -q

A)
NFS
B)
FTP
C)
PCMCIA
D)
All of the above

Correct Answer :   All of the above

A)
Net.Net.Net.Node
B)
Net.Net.Node.Node
C)
Net.Node.Node.Node
D)
Net.Node.Net.Node

Correct Answer :   Net.Node.Node.Node

A)
128.10.2.30
B)
148.20.2.30
C)
164.100.9.61
D)
210.20.2.64

Correct Answer :   128.10.2.30

A)
Class A
B)
Class B
C)
Class C
D)
All of the above

Correct Answer :   Class A

138 .
What command is used with file named 'letter' to remove the executable permission from the user and assign read permission to the group and others?
A)
chmod go + r, u + x letter
B)
chmod u - x, go + r letter
C)
chmod go + x, u - x letter
D)
chmod g - x, uo + r letter

Correct Answer :   chmod u - x, go + r letter

139 .
What command is used to assign executable permission to the owner of the file named "letter"?
A)
chmod u + x letter
B)
chmod g + x letter
C)
chmod u + w letter
D)
chmod ugo + x letter

Correct Answer :   chmod u + x letter

A)
du
B)
cmp
C)
ccp
D)
comp

Correct Answer :   cmp

A)
DOS
B)
BSD
C)
Linux
D)
UnixWare

Correct Answer :   DOS