130+ Linux Operating System Solved MCQs With PDF Download
130+ Linux Operating System Solved MCQs With PDF Download
Save
Take a Test
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
discuss
2. What command is used to remove files?
A. dm
B. rm
C. delete
D. erase
Answer» B. rm
discuss
A. rdir
B. remove
C. rd
D. rmdir
Answer» D. rmdir
discuss
A. x
B. y
C. a
D. z
Answer» A. x
discuss
A. SPARC
B. IBM-compatible
Answer» D. Macintosh
5. What hardware architectures are not supported by Red Hat?
C. Alpha
D. Macintosh
Answer» D. Macintosh
discuss
A. Using useradd
B. Using adduser
C. Using linuxconf
D. rpm -e ipchains-1.3.9-5.i386.rpm
A. fdisk
B. mkfs
C. fsck
D. mount
Answer» B. mkfs
discuss
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
discuss
A. grep
B. mail
C. mesg
D. write
Answer» A. grep
discuss
A. au
Answer» B. ps
12. What command is used to display the characteristics of a process?
B. ps
C. du
D. pid
Answer» B. ps
discuss
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]
discuss
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
discuss
15. What command is used to sort the lines of data in a file in alphabetical order?
A. sort - r
B. st
C. sh
Answer» D. sort
15. What command is used to sort the lines of data in a file in alphabetical order?
D. sort
Answer» D. sort
discuss
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
discuss
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
discuss
18. What command is used with vi editor to search a pattern in the forward
direction?
A. ??
B. //
C. ?
D. /
Answer» D. /
discuss
A. Lpd
B. Lpr
C. Lpq
D. Lpc
Answer» B. Lpr
discuss
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
Answer» A. POP3
discuss
B. RHAD Labs
C. GNOME Project
22. What X-based tool is available for configuring the X Window system?
Answer» B. XF86Setup
22. What X-based tool is available for configuring the X Window system?
A. XConfigurator
B. XF86Setup
C. xf86config
Answer» B. XF86Setup
discuss
23. Which of the following server is used with the BIND package?
A. httpd
B. shttp
C. dns
D. named
Answer» D. named
discuss
A. 4322
B. 2314
C. 7334
D. 3128
Answer» D. 3128
discuss
A. /etc/apache.conf
B. /etc/httpd/config.ini
Answer» C. /etc/httpd/conf/httpd.conf
25. Which of the following is the main Apache configuration file?
C. /etc/httpd/conf/httpd.conf
D. /etc/srm.conf
Answer» C. /etc/httpd/conf/httpd.conf
discuss
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
discuss
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
discuss
28. In which tcp_wrappers file can you specify to allow all connections from all
hosts?
A. /etc/hosts.allow
B. /etc/hosts.deny
Answer» A. /etc/hosts.allow
28. In which tcp_wrappers file can you specify to allow all connections from all
hosts?
C. /etc/hosts
D. /etc/tcp.conf
Answer» A. /etc/hosts.allow
discuss
C. General Unix
30. What command is used to remove jobs from the print queue?
A. lpq
B. lpr
C. lprm
D. lpc
Answer» C. lprm
discuss
A. Alt+Function Key
B. Ctrl+Function Key
C. Ctrl+Alt+Del
D. Alt+a+w+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
discuss
33. RPM
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
discuss
35. Who founded the Linux Kernel?
A. Bill Gates
B. Ben Thomas
C. Richard Stallman
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
discuss
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
Answer» A. /etc/ftpusers
discuss
A. vi
Answer» D. cron
38. Which program is used to schedule particular jobs or programs at particular
times on the system?
B. Outlook
C. Scheduler
D. cron
Answer» D. cron
discuss
39. The location of some system configuration and system administrator executable
files, is:
A. /home
B. /proc
C. /var
D. /sbin
Answer» D. /sbin
discuss
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
discuss
A. sort
Answer» D. cat
41. Which of the following is not a filter command?
B. wc
C. grep
D. cat
Answer» D. cat
discuss
42. What command is used to assign executable permission to all of the files named
"report"?
B. chmod u + x report
A. cdir
B. chdir
C. changedir
D. cd
Answer» D. cd
discuss
44. What command is used to count just the number of characters in a file?
A. wc - r
B. wc - w
C. wc - c
Answer» C. wc - c
44. What command is used to count just the number of characters in a file?
D. wc - 1
Answer» C. wc - c
discuss
A. which
B. pwd
C. i /4
D. who am i
Answer» D. who am i
discuss
A. /dev
B. /bin
C. /etc
D. /home
Answer» A. /dev
discuss
A. /dev
B. /bin
C. /etc
D. /home
Answer» C. /etc
discuss
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
discuss
A. httpd.conf
B. apache.con
C. /etc/profile
D. system.ini
Answer» A. httpd.conf
discuss
A. lyrix
B. ed
C. vi
D. cat
Answer» D. cat
discuss
51. Which of the following command can be used to rename a file in LINUX?
A. ren
B. mv
Answer» B. mv
51. Which of the following command can be used to rename a file in LINUX?
C. remove
D. change
Answer» B. mv
discuss
A. del
B. mv
C. rm
D. remove
Answer» C. rm
discuss
A. grep
B. more
C. head
D. cat
Answer» C. head
discuss
54. What command is used to sort the lines of data in a file in reverse order?
A. sort - r
B. st
C. sh
D. sort
Answer» A. sort - r
discuss
55. What command is used to print a file?
A. lp
B. pg
C. prn
D. print
Answer» A. lp
discuss
57. What command is used with vi editor to move forward to the end of a word?
A. c
B. d
C. b
D. e
Answer» D. e
discuss
A. 16-bit addresses
B. 32-bit addresses
C. 64-bit addresses
D. 8-bit addresses
A. apached
B. httpd
C. html
D. shttp
Answer» B. httpd
discuss
A. Linus Torvalds
B. Richard Stallman
C. Bob Young
A. tar
B. cpio
C. cp
D. copy
Answer» C. cp
discuss
A. path
B. pwd
C. prompt $p$g
D. dir
Answer» B. pwd
discuss
63. What command is used with vi editor to move the cursor to the left?
A. h
B. k
C. j
D. i
Answer» A. h
discuss
A. nfsmount
B. knfsd
C. mount
Answer» C. mount
discuss
65. You just added a new user, kara, to the system. What group is kara added to by
default?
Answer» B. kara
65. You just added a new user, kara, to the system. What group is kara added to by
default?
A. root
B. kara
C. group
D. user
Answer» B. kara
discuss
66. Which of the following command lists the last 10 lines of a file?
A. grep
B. tail
C. head
D. cat
Answer» B. tail
discuss
A. kill
B. cancel
C. haltsys
D. shutdown
Answer» A. kill
discuss
A. 3$d
B. 3 dw
Answer» B. 3 dw
68. What command is used with vi editor to delete three words?
C. 3 x
D. 3 dd
Answer» B. 3 dw
discuss
69. What command is used to assign only read permission to all three categories of
the file'letter'?
A. chmod u + r, g + r, o - x letter
C. chmod a - rw letter
D. chmod go + r letter
70. 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 + x, u - x letter
B. chmod g - x, uo + r letter
C. chmod go + r, u + x letter
D. chmod u - x, go + r letter
71. What command is used to assign executable permission to the owner of the file
named "letter"?
B. chmod u + x letter
C. chmod u + w letter
D. chmod g + x letter
A. disk
B. du
C. fdisk
D. chkdsk
Answer» B. du
discuss
73. What command is used to list the jobs currently in print queues?
A. lpq
B. lpr
C. lprm
D. lpc
Answer» A. lpq
discuss
74. What is the following syntax used for command 2> /dev/null
A. crontab -d
B. crontab -e
C. crontab -r
D. del -crontab
Answer» C. crontab -r
discuss
A. crontab --create
B. crontab -make
C. crontab -e
D. crontab –c
Answer» C. crontab -e
discuss
A. ps -C httpd
B. ps -d httpd
C. ps -r httpd
D. ps -D httpd
Answer» A. ps -C httpd
discuss
A. rm -i
Answer» A. rm -i
78. How would you avoid accidentally removing files?
B. rm -chk
C. rm -a
D. rm -r
Answer» A. rm -i
discuss
79. How would you search for the string clothes at the end of the line in a file called
shopping?
80. Which runlevel allows full multiuser mode but with no graphical login manager?
A. Runlevel 1
B. Runlevel 2
C. Runlevel 3
D. Runlevel 0
Answer» C. Runlevel 3
discuss
A. sort -n 3 shopping
B. sort -k 3 shopping
C. sort -c 3 shopping
82. How do you run a job that will continue running even if you are logged out?
A. hup.out command
B. hup command
C. jobc command
D. nohup command
83. What is the following syntax used for? command >file1 2>file2
B. Send command's standard error to file1, and its standard output to file2
C. Send command's standard error to file1, and its standard input to file2
Answer» A. Send command's standard output to file1,and its standard error to file2
discuss
84. What does the 2>&1 at the end of the following command mean?find / -name
fred.txt > names 2>&1
A. dmount
B. dismount
C. unmount
D. umount
Answer» D. umount
discuss
A. /etc/init/runlevels
B. /etc/levels/fstab
C. /etc/fstab
D. /etc/inittab
Answer» D. /etc/inittab
discuss
A. /boot/grub/lsof.conf
B. /boot/grub/menu.lst
C. /etc/grub/grub.conf
D. /etc/grub/grub.txt
Answer» B. /boot/grub/menu.lst
discuss
A. kernel -r
Answer» B. uname -r
88. How do you display the kernel release?
B. uname -r
C. cat /proc/etc/kernel/release
D. cat /etc/config/kernel/release
Answer» B. uname -r
discuss
89. What does the permission string rwxr-xr-- correspond with in octal?
A. 742
B. 754
C. 724
D. 624
Answer» B. 754
discuss
A. crontab -display
B. crontab -d
C. list --crontab
D. crontab -l
Answer» D. crontab -l
discuss
A. ls -h
B. ls -la
C. ls -hn
Answer» B. ls -la
91. How do you see hidden files in your home directory?
D. ls -R
Answer» B. ls -la
discuss
92. How do you direct the shell to execute a command in the background?
A. Ctrl+E
B. Ctrl+C
C. Ctrl+D
D. Ctrl+Z
Answer» C. Ctrl+D
discuss
It is used to send the output of one command so it becomes the input of a second
A.
command.
A. rm -r
B. rm -f
C. rmdir -f
D. rmdir -le
Answer» A. rm -r
discuss
96. To display information about the processor itself - display the contents of which
file?
A. /bin/cpu
B. /dev/cpuinfo
C. /etc/cpu
D. /proc/cpuinfo
Answer» D. /proc/cpuinfo
discuss
97. To run date first, and then ls -l, which of the following is correct?
A. date $ ls -l
B. date ; ls -l
C. date - ls -l
D. date > ls -l
Answer» B. date ; ls -l
discuss
98. Which file is the list of commands you recently entered stored in?
A. .bashrc_history
B. .history
Answer» C. .bash_history
98. Which file is the list of commands you recently entered stored in?
C. .bash_history
D. .bash_list_history
Answer» C. .bash_history
discuss
99. Which of the following runs the last command you entered?
A. ~!
B. !~
C. !!
D. ..
Answer» C. !!
discuss
100. What is the shortest command to take you to your home directory?
A. cd ~
B. cd $HOME
C. cd
D. .
Answer» C. cd
discuss
1 2
Tags
Question and answers in Linux Operating System,
Linux Operating System multiple choice questions and answers, Linux Operating System Important MCQs,
Solved MCQs for Linux Operating System, Linux Operating System MCQs with answers PDF download
Digital Electronics
Software Engineering
Personality Development
Computer Fundamentals
8085 Microprocessor
Web Technology
Basics of Computer Architecture
.NET Programming
Search MCQ | Topic | Course
Basics of Computer Graphics
Control Systems
Information Security
Recommended courses
Bachelor of Computer Applications (BCA)
McqMate
Popular Courses
UPSC - Union Public Service Commission
MBA
You Tube
Contacts
Email: [email protected]
Disclaimer
Hosted on Hostinger
© Copyright 2024 McqMate. All rights reserved.