Linux MCQ. Questions and answers pdf of linux OS (Operating system) & commands for interview, viva and competitive exams preparation. Objective type multiple choice question basic to advance for beginners.
Linux MCQ
1. In Linux, access permission meant for _______.
a) user
b) group
c) world
d) all of them
Ans. d
2. 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
3. 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
4. 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
5. Which character is used to represent parent directory in Linux?
A) .
B) ..
C) ~
D) *
Ans. b
6. Which character is used to redirect output in to an existing file in Linux?
A >
B >>
C <
D <<
Ans. b
7. Which one of the following is the directory separator in Linux?
A /
B \
C //
D \\
Ans. a
8. Which character is used to represent a range of values in Linux?
A ( )
B [ ]
C { }
D <>
Ans. b
9. Which character redirects the output of one command to another in Linux?
A .dot
B | pipe
C : colon
D ; semicolon
Ans. b
10. Which Linux command list the content of all sub directory?
A ls ~
B ls * /
C ls /
D ls ../
Ans. b
11. Which Linux command list the contents of parent directory?
A ls ~
B ls */
C ls /
D ls .. /
Ans. d
12. What is use of ‘who’ command in Linux?
A login user
B logout user
C login password
D logout password
Ans. a
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
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
18. An example of the most popular open source software is ______ .
(a) Mozilla Firefox browser, GIMP image editor, QCAD drafting tool, Blender 3D modeling software
(b) Linux operating system
(c) Open office, Libre Office, KOffice, gnumeric, AbiWord, Scribus
(d) all of them
Ans. d
19. _____ are some of the open source licensing models.
(a) GNU GPL/ GNU LGPL
(b) Apache license
(c) BSD/ MIT/ Eclipse/ Mozilla license
(d) all of them
Ans. d
20. GNU GPL stands for ______.
(a) GNU General Public License
(b) GNU Lesser General Public License
(c) GNU Not Unix
(d) GNU Image Manipulation Program
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 Program
Ans. b
22. GNU stands for ______ .
(a) GNU General Public License
(b) GNU Lesser General Public License
(c) GNU Not Unix
(d) GNU Image Manipulation Program
Ans. c
23. GIMP stands for _______.
(a) GNU General Public License
(b) GNU Lesser General Public License
(c) GNU Not Unix
(d) GNU Image Manipulation Program
Ans. d
24. ______ founded the GNU project to 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 to communicate with the kernel of Linux operating 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 is called______.
(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
28. The command cshin Linux opens _____shell.
(a) Bourne Again SHell
(b) C-Shell
(c) Korn-shell
(d) none of them
Ans. b
29. The command kshin Linux opens ______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 the shell 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
32. Linux command removes given directory.
(a) ls
(b) chmod
(c) mkdir
(d) rmdir
Ans. d
33. _____ Linux command changes the access mode of a file.
(a) pwd
(b) chmod
(c) mkdir
(d) rmdir
Ans. b
34. The numeric value of read permission is_______
(a) 4
(b) 2
(c) 1
(d) 0
Ans. a
35. The numeric value of write permission is ______.
(a) 4
(b) 2
(c) 1
(d) 0
Ans. b
36. In Linux, the numeric value of execute permission is_____ .
(a) 4
(b) 2
(c) 1
(d) 0
Ans. c
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