86
66.8k

130+ Linux Operating System Solved MCQs

These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Bachelor of Computer Applications (BCA) , Master of Science in Information Technology (MSc IT) , Master of Science in Software Engineering (MSc SE) .

1.

What command is used to count the total number of lines, words, and characters contained in a file?

A. countw
B. wcount
C. wc
D. count p
Answer» C. wc
2.

What command is used to remove files?

A. dm
B. rm
C. delete
D. erase
Answer» B. rm
3.

What command is used to remove the directory?

A. rdir
B. remove
C. rd
D. rmdir
Answer» D. rmdir
4.

What command is used with vi editor to delete a single character?

A. x
B. y
C. a
D. z
Answer» A. x
5.

What hardware architectures are not supported by Red Hat?

A. SPARC
B. IBM-compatible
C. Alpha
D. Macintosh
Answer» D. Macintosh
6.

How can you add Amit, a new user, to your system?

A. Using useradd
B. Using adduser
C. Using linuxconf
D. All of the above
Answer» D. All of the above
7.

How could you install the file ipchains-1.3.9-5.i386.rpm?

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

What does FSF stand for?

A. Free Software File
B. File Server First
C. First Serve First
D. Free Software Foundation
Answer» D. Free Software Foundation
9.

What command do you use to create Linux file systems?

A. fdisk
B. mkfs
C. fsck
D. mount
Answer» B. mkfs
10.

Which of the following command can you execute to count the number of lines in a file?

A. lc
B. wc - l
C. cl
D. count
Answer» B. wc - l
11.

Which of the following is not a communication command?

A. grep
B. mail
C. mesg
D. write
Answer» A. grep
12.

What command is used to display the characteristics of a process?

A. au
B. ps
C. du
D. pid
Answer» B. ps
13.

What command is used to list only the files chap0l, chap02 and chap04?

A. ls chap*
B. ls chap[124]
C. ls - x chap0[124]
D. ls chap0[124]
Answer» C. ls - x chap0[124]
14.

What command is used with vi editor to replace text from cursor to right

A. S
B. s
C. R
D. r
Answer» C. R
15.

What command is used to sort the lines of data in a file in alphabetical order?

A. sort - r
B. st
C. sh
D. sort
Answer» D. sort
16.

What command is used with vi editor to save file and remain in the editing mode?

A. x
B. q!
C. :w
D. :q
Answer» C. :w
17.

What command is used with vi editor to move back to the beginning of a word?

A. w
B. e
C. a
D. b
Answer» D. b
18.

What command is used with vi editor to search a pattern in the forward direction?

A. ??
B. //
C. ?
D. /
Answer» D. /
19.

What command is used to add printing jobs to the queue?

A. Lpd
B. Lpr
C. Lpq
D. Lpc
Answer» B. Lpr
20.

What protocol(s) is(are) allowed a user to retrieve her/his mail from the mail server to her/his mail reader?

A. POP3
B. FTP
C. MAP
D. All of the above
Answer» A. POP3
21.

What project is currently developing X server support?

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

What X-based tool is available for configuring the X Window system?

A. XConfigurator
B. XF86Setup
C. xf86config
D. All of the above
Answer» B. XF86Setup
23.

Which of the following server is used with the BIND package?

A. httpd
B. shttp
C. dns
D. named
Answer» D. named
24.

What port does squid listen, by default?

A. 4322
B. 2314
C. 7334
D. 3128
Answer» D. 3128
25.

Which of the following is the main Apache configuration file?

A. /etc/apache.conf
B. /etc/httpd/config.ini
C. /etc/httpd/conf/httpd.conf
D. /etc/srm.conf
Answer» C. /etc/httpd/conf/httpd.conf
26.

Which of the following command is used to access an SMB share on a Linux system?

A. NFS
B. SMD
C. smbclient
D. smbserver
Answer» C. smbclient
27.

Which of the following command is used to see the services running in NFS server?

A. rpcinfo
B. serverinfo
C. NFSinfo
D. infserv
Answer» A. rpcinfo
28.

In which tcp_wrappers file can you specify to allow all connections from all hosts?

A. /etc/hosts.allow
B. /etc/hosts.deny
C. /etc/hosts
D. /etc/tcp.conf
Answer» A. /etc/hosts.allow
29.

What does GNU stand for?

A. GNU's not Unix
B. Greek Needed Unix
C. General Unix
D. General Noble Unix
Answer» A. GNU's not Unix
30.

What command is used to remove jobs from the print queue?

A. lpq
B. lpr
C. lprm
D. lpc
Answer» C. lprm
31.

How can you navigate around virtual consoles?

A. Alt+Function Key
B. Ctrl+Function Key
C. Ctrl+Alt+Del
D. Alt+a+w+Function Key
Answer» A. Alt+Function Key
32.

Which of the following NIS clients, finds and stores information about an NIS domain and server?

A. ypwhich
B. ypbind
C. ypcat
D. yppoll
Answer» B. ypbind
33.

RPM

A. stands for Red Hat Package Manager
B. is used to install, uninstall, and manage packages
C. is used to keep track of the users
D. assigns a dynamic IP address
Answer» A. stands for Red Hat Package Manager
34.

What command is used to query for a specific package with RPM?

A. rpm -q
B. rpm -a
C. rpm -d
D. rpm -1
Answer» A. rpm -q
35.

Who founded the Linux Kernel?

A. Bill Gates
B. Ben Thomas
C. Richard Stallman
D. Linus Torvalds
Answer» D. Linus Torvalds
36.

_____ tool allows you to change your default X Window desktop.

A. utilinux
B. cempre
C. switchdesk
D. window
Answer» C. switchdesk
37.

In what file can you specify which users are not allowed to access a system via FTP?

A. /etc/ftpusers
B. /etc/hosts.deny
C. /etc/ftpaccess
D. All of the above
Answer» A. /etc/ftpusers
38.

Which program is used to schedule particular jobs or programs at particular times on the system?

A. vi
B. Outlook
C. Scheduler
D. cron
Answer» D. cron
39.

The location of some system configuration and system administrator executable files, is:

A. /home
B. /proc
C. /var
D. /sbin
Answer» D. /sbin
40.

The location for subdirectories for local programs and executables for user and administrative commands, is:

A. /usr
B. /tmp
C. /opt
D. /mnt
Answer» A. /usr
41.

Which of the following is not a filter command?

A. sort
B. wc
C. grep
D. cat
Answer» D. cat
42.

What command is used to assign executable permission to all of the files named "report"?

A. chmod ugo + x report
B. chmod u + x report
C. chmod ugo + rw report
D. chmod ugo + r report
Answer» A. chmod ugo + x report
43.

What command is used to change the working directory?

A. cdir
B. chdir
C. changedir
D. cd
Answer» D. cd
44.

What command is used to count just the number of characters in a file?

A. wc - r
B. wc - w
C. wc - c
D. wc - 1
Answer» C. wc - c
45.

What command can be used to get information about yourself?

A. which
B. pwd
C. i /4
D. who am i
Answer» D. who am i
46.

Which of the following subdirectory(ies) contains the device files?

A. /dev
B. /bin
C. /etc
D. /home
Answer» A. /dev
47.

Which of the following subdirectory(ies) contains the system configuration scripts.

A. /dev
B. /bin
C. /etc
D. /home
Answer» C. /etc
48.

What of the following tool is used to check and repair Linux file systems?

A. mkfs
B. fdisk
C. fsck
D. mount
Answer» C. fsck
49.

Which of the following is the main Apache configuration file?

A. httpd.conf
B. apache.con
C. /etc/profile
D. system.ini
Answer» A. httpd.conf
50.

What command is used to display and create files?

A. lyrix
B. ed
C. vi
D. cat
Answer» D. cat

Done Studing? Take A Test.

Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.