Linux MCQ
Linux MCQ
13.Write the Linux command to remove all the permission to the user and group on the directory
„software‟?
A chmodug - rwx software
B chmodug - a software
C chmodug - A software
D chmodug - Rwx software
Ans. a
14. Which Linux command is used to sort the text file „network‟ in descending order?
A Sort / r network B Sort - r network
C Sort + r network D Sort \ r network
Ans. b
15.Which Linux command to set the permission „x‟ to user, „rw‟ to others and „rwx‟ to group for the
file launcher
A chmod 176 launcher
B chmod 671 launcher
C chmod 167 launcher
D chmod 166 launcher
Ans. c
These Questions Prepared by: SONU (HEETSON)
16. ______ helps capable users to improve and bug fix the software.
(a) open source software (b) closed source software
(c) virus software (d) hacked software
Ans. a
17. _______ model of software helps developers across the world to cooperate in development of
software.
(a) open source software (b) closed source software
(c) virus software (d) hacked software
Ans. a
21. GNU LGPL stands for _______ and it permits embedding open source libraries in closed
source projects.
(a) GNU General Public License
(b) GNU Lesser General Public License
(c) GNU Not Unix
(d) GNU Image Manipulation Programme
Ans. b
24. ______ founded the GNU projectto create an alternative to UNIX operating system from
scratch.
(a) Richard Stallman
(b) Linus Torvalds
(c) Dennis Ritchie
(d) Brian Kernighan
Ans. a
25. The software which helps the user tocommunicate with the kernel of Linuxoperating system is
called_______ .
(a) kernel (b) shell (c) neither a nor b (d) both a and b
Ans. b
26. The Linux shell having features similar to the C-Programming language iscalled______.
(a) Bourne Again Shell (b) C-Shell (c) Korn-shell (d) none of them
Ans. b
27. _______ shell was released by AT&Tas an improvement to the Bourne shell
(a) Bourne Again SHell
(b) C-Shell
(c) Korn-shell
(d) none of them
Ans. c
30. Any shell script begins with the line______to denote the name of theshell to be used for
interpretation.
(a) #!/bin/sh (b) #!/bin/csh
(c) #!/bin/ksh (d) any one of them
Ans. d
31. To display the list of files and directories, _____Linux command is used.
(a) ls (b) chmod (c) mkdir (d) rmdir
Ans. a
37. In Linux, a file having read and write permissions would have a numeric value of _____ as
argument to chmod.
(a) 6 (b) 7
(c) 4 (d) 5
Ans. a
38. In Linux, a file having read only permissions would have a numeric value of as _____
argument to chmod.
(a) 6 (b) 7
(c) 4 (d) 5
Ans. c
39. In Linux, a file having read, write and execute permissions would have a numeric value of
________ as argument to chmod.
(a) 6 (b) 7
(c) 4 (d) 5
Ans. b
40. In Linux, a file having read and execute permissions would have a numeric value of _____ as
argument to chmod.
(a) 6 (b) 7
(c) 4 (d) 5
Ans. d
42. In Linux, first value of permission provided to chmod command is meant for______.
(a) user (b) group
(c) world (d) all of them
Ans. a
These Questions Prepared by: SONU (HEETSON)
43. In Linux, second value of permission provided to chmod command is meant for_____.
(a) user (b) group
(c) world (d) all of them
Ans. b
44. In Linux, third value of permission provided to chmod command is meant for ______.
(a) user (b) group
(c) world (d) all of them
Ans. c
45. Any person unrelated to the current user or the group of the current user is treated with
________ permissions.
(a) user (b) group (c) world (d) all of them
Ans. c
47. Linux command creates a link to the current file (not a full copy of the file).
(a) cp (b) ln
(c) mv (d) cd
Ans. b
48. ______ Linux command deletes the source file and creates copy of the source file in a new
name.
(a) cp (b) ln
(c) mv (d) cd
Ans. c
58. In Linux, ______ command shouldbe run as root user to shutdown thecomputer.
(a) eject (b) mount
(c) umount (d) shutdown
Ans. d
60. _____ Linux command makes theshell to stop processing for specified duration.
(a) reboots (b) halts
(c) sleep (d) sort
Ans. c
61. ______ Linux command creates a single archive from specified files and directories.
(a) tar (b) zip
(c) gzip (d) ls–l
Ans. a
62. _____ Linux command creates zip file using given source file.
(a) tar (b) zip (c) gzip (d) ls–l
Ans. b
63. _____ Linux command createsgzip file using given source file.
(a) tar (b) zip (c) gzip (d) ls–l
Ans. c
64. ______Linux command displays full information about files and directories.
(a) tar (b) zip (c) gzip (d) ls–l
Ans. d
These Questions Prepared by: SONU (HEETSON)
68. ______ Linux command searches for a given file and optionally executes given command on
that file.
(a) banner (b) find
(c) rm (d) cat
Ans. b
70. ______ Linux command creates a large banner out of given text.
(a) banner (b) find
(c) rm (d) cat
Ans. a
72. In Linux, ______ command displays the current date and time.
(a) time (b) date
(c) cat (d) man
Ans. b
73. In Linux, ______ command displays help about given command (manual page).
(a) time (b) date
(c) cat (d) man
Ans. d
81. In Linux,______ command helps a normal user to execute given command with root
privileges.
(a) sudo (b) cal
(c) bc (d) cron
Ans. a
86. In Linux,________ command searches the path and displays location of a given file.
(a) which (b) file (c) tr (d) chown
Ans. a
These Questions Prepared by: SONU (HEETSON)
88. In Linux, _____command translates given input characters to specified equivalent characters.
(a) which (b) file (c) tr (d) chown
Ans. c
89. In Linux, ______ command changes ownership of a file to specified owner and group.
(a) which (b) file (c) tr (d) chown
Ans. d
90. In Linux,_______ command changes ownership of a file to specified owner and group.
(a) which (b) file
(c) tr (d) chown
Ans. d
93. In Linux,_______ command catches given string from the input lines or specified files.
(a) groupadd (b) groupdel
(c) grep (d) test
Ans. c
97. In Linux, ______ command displays tree structure of all files and directories.
These Questions Prepared by: SONU (HEETSON)
(a) tree b) c++ (c) export (d) clear
Ans. A
99. In Linux, _______ command compiles C++ source file to binary executable file.
(a) tree (b) c++
(c) export (d) clear
Ans. b
101. In Linux, ______ command exports displays the list of currently running processes.
(a) tree
(b) ps
(c) kill
(d) clear
Ans. b
110. The &character placed at the end of command line in Linux ______.
(a) stores exit status of previous command
(b) matches all characters
(c) sends to process to the background
(d) appends output to a file
Ans. c
117. LILO
a) stands for Linux loader
b) is the Linux boot loader
c) is a tool used to boot the Kernel on x86 hardware
d) All of the above
Ans. d
119. Which program is used to automatically install Red Mat Linux on identical hardware?
Ans. mkkickstart
1. Any software (paid or free), for which source code is available is called_____.
(a) open source software
(b) free software
(c) virus software
(d) hacked software
4. The core of the Linux operating system, which manages files, peripherals and other resources,
is called _______ .
(a) kernel
(b) shell
(c) neither a nor b
(d) both a and b
These Questions Prepared by: SONU (HEETSON)
5. Bash in Linux shell stands for ______.
(a) Bourne Again SHell
(b) C-Shell
(c) Korn-shell
(d) none of them
HEETSON
E-Book Store