Dump Linux MCQs
Dump Linux MCQs
Question 1:
To print the lines in which 2nd word starts with letter “A” from the file names.txt,the command
will be?
a) cat names.txt | grep \s+A
b) cut -d “ “ 2 names.txt | grep A
c) cat names.txt | grep ^A
d) cut -d “ “ -f 2 names.txt | grep ^A
Answer: cut -d “ “ -f 2 names.txt | grep ^A
Question 2:
Consider the commands for some user named “rajat”
mkdir testdir
chmod 0444 testdir
cd testdir
touch abc.txt
Which line will give error ?
a) Line 1 : wrong command syntax
b) Line 2 : can not change the permissions of the directory
c) Line 3 : Can not change directory : permission denied
d) Line 4 : can not create file : permission denied
Answer:3
Question 3:
Consider the commands
touch myfile.c
cat>myfile.c
#include<stdio.h>
int main()
{
printf(“Vi Editor”);
return 0;
}
Control + Z
vi myfile.c
yy
p
:wq
Answer: b
Question 4:
Consider the following commands entered and then what will be the output
cat>names.txt
Sumit
Rajan
Suresh
Anita
Control + Z
cp names.txt names2.txt
cat>>names2.txt
Anamika
Control + Z
diff names.txt names2.txt
a) 4a0 > Anamika
b) 0d5 < Anamika
c) 4c5 < Anamika
d) 4a5 > Anamika
Answer:4a5 > Anamika
Question 5:
Consider the commands executed with present working directory empty :
1. mkdir fol1
2. touch fol1/abc.txt
3. cat>fol1/abc.txt
4. this is the content.
5. Control + Z
6. cp fol1/abc.txt fol2/abc.txt
Which of these command will give error :
a) Line 2 : Can not create file in some other folder
b) Line 3 : can not write to a file in some other folder
c) Line 6 : can not copy to some other folder
d) Line 6 : Directory “fol2” does not exist. Hence Error
In Linux operating system, the __ is the default input device and the ____ is the default output device.
a) Keyboard, printer
b) Mouse, printer
c) Keyboard, monitor
d) Mouse, monitor
Answer:Keyboard, monitor
Question 7:
a) Insert, Execute
b) Command, insert
c) Command, Execute
d) Insert, append
Answer: Command, insert
Question 8:
The command cat with option_ is used for creating a new file whereas option __ is used for appending to the
already existing file.
a) >,>>
b) >,<
c) <,>
d) <,>>
Answer:>,>>
Question 9:
In the chmod command, the octal value for read permission is __ and for execute is ___.
a) 4, 2
b) 2, 1
c) 4, 1
d) 2, 4
Answer:2, 1
Question 10:
The filename __ refers to the current working directory and the filename __ refers to the parent directory.
a) /,.
b) .., /
c) /, ..
d) ., ..
Answer:/, ..
11.Which command deletes all files in the current directory whose filename ends
a. rm *.html
b. rm -r *.html
c. rm .html
A. To load the Linux kernel into memory and start the operating system
Answer: A
Q 2. Which file system is commonly used in Linux installations due to its robustness and journaling
capabilities?
A. FAT32
B. NTFS
C. Ext4
D. HFS+
Answer: C
Answer: C
Q 4. Which of the following is a Linux distribution known for its focus on simplicity and ease of
use,cpmes with apt package manager making it a popular choice for beginners?
A. Ubuntu
B. CentOS
C. Arch Linux
D. Fedora
Answer: A
Q 5. What is the purpose of the 'partitioning' step during Linux installation?
B. To allocate disk space and create partitions for the operating system and user data
Answer: B
A. Ext3
B. Ext4
C. XFS
D. Btrfs
Answer: C
Q 7. Which of the following options is not available from the Installation Summary screen?
B. Keyboard
C. Language Support
Answer: D
A. You can change the system language from the Installation Summary screen.
B. You can change the system language directly after booting from the installation media.
C. When setting the installation language, you can also select a keyboard layout.
Answer: D
Q 9. Which of the following commands enables you to redirect standard output as well as standard
error to a file?
A. 1&2> file
B. file 2>&1
C. >1&2 file
D. 1>2& file
Answer: B
Q 10. What is the primary function of the BIOS (Basic Input/Output System) in the boot process?
Answer: B
Q 11. Which bootloader is commonly used in many Linux distributions to manage the boot
process?
C. Boot Camp
Answer: A
Q 12. What is the purpose of the MBR (Master Boot Record) in the boot process?
Answer: C
Q 13. In the boot process of a typical computer, what follows the BIOS and MBR?
Answer: A
B. To load the operating system kernel into memory and start the OS
Answer: B
Q 15. Which command is used in Linux to display the available disk space on the filesystems?
A. df
B. du
C. ls
D. diskinfo
Answer: A
A. To remove a directory
D. To rename a directory
Answer: B
Q 17. Which file in Linux contains information about installed packages and their locations?
A. /etc/packages
B. /var/pkglist
C. /usr/local/packages
D. /var/lib/dpkg/status
Answer: D
Q 18. What is the purpose of the mount command in Linux?
D. To unmount a filesystem
Answer: C
Q 19. Which Linux command is used to change the ownership of a file or directory?
A. chown
B. chmod
C. own
D. alterowner
Answer: A
Q 20. Which of the following is a commonly used package management system in Linux
distributions, allowing users to install, update, and remove software packages in debian Operating
system?
A. RPM
B. APT
C. ZIP
D. EXE
Answer: B
C. To load the Linux kernel into memory and start the operating system
Answer: C
Q 22. During Linux installation, what is the role of the root user?
C. The root user can only access specific folders in the system
Answer: B
Q 23. What is the purpose of the 'user account setup' step during Linux installation?
Answer: B
Q 24. What is the role of the POST (Power-On Self-Test) during the boot process?
Answer: A
Q 25. Which component is responsible for storing the bootloader in UEFI (Unified Extensible
Firmware Interface) systems?
Answer: B
Q 26. What does the acronym UEFI stand for in the context of modern computer boot processes?
Answer: B
Q 27. n a typical boot sequence, what loads after the bootloader, responsible for initializing the
user interface and system services?
A. Shell
B. Kernel
C. System Registry
D. Device Drivers
Answer: B
Q 28. What is the purpose of the init system or its successor (such as systemd) in the Linux boot
process?
Answer: C
C. To compress files
Answer: B
A. tar
B. zip
C. compress
D. gzip
Answer: A
Q 31. What is the purpose of the fdisk command in Linux?
A. To format a filesystem
Answer: C
Q 32. Which file in Linux stores user account information, including usernames and encrypted
passwords?
A. /etc/passwd
B. /etc/shadow
C. /etc/users
D. /var/account
Answer: B
A. To mount a filesystem
B. To unmount a filesystem
Answer: B
Q 34. Which command is used to search for files and directories in Linux?
A. find
B. search
C. locate
D. scan
Answer: A
Answer: A
A. rn
B. rename
C. cp
D. mv
Answer: D
Q 37. What does the acronym LVM stand for in the context of Linux storage management?
Answer: A
Q 38. Which command is used to check and repair Linux file systems?
A. chkfs
B. fsck
C. fixfs
D. repairfs
Answer: B
Q 39. You are currently in the directory /home/user/downloads in the Linux terminal. You want to
move to the directory /home/user/documents. What is the correct relative path?
A. /home/user/documents
B. ../documents
C. /user/documents
D. ../user/documents
Answer: B
A. Windows
C. Linux
Answer: B
Answer: A
Q 42. Which distribution played a pivotal role in popularizing Linux in the late 1990s and early
2000s?
A. Red Hat
B. Ubuntu
C. Debian
D. Fedora
Answer: A
A. Linus Torvalds
B. Richard Stallman
C. Steve Jobs
D. Mark Zuckerberg
Answer: A
Q 44. You want to create a new file named "report.docx" in a specific directory, such as
/var/reports, in the Linux terminal. What command should you use?
A. create /var/reports/report.docx
B. touch /var/reports/report.docx
C. newfile /var/reports/report.docx
D. makefile /var/reports/report.docx
Answer: B
Q 45. In the Linux terminal, you need to create a new file named "notes.txt" in the current
directory. Which command should you use?
A. create notes.txt
B. touch notes.txt
C. newfile notes.txt
D. makefile notes.txt
Answer: B
Q 46. Which operating system had a significant influence on Linus Torvalds when he created Linux?
A. Minix
B. Windows
C. MacOS
D. Unix
Answer: A
Q 47. Which Linux component allows users to run Windows applications on Linux?
A. Kernel
B. Wine
C. Shell
D. GNU Compiler
Answer: B
Q 48. In a scenario where a Linux system is using a swap partition extensively, what can be a
possible consequence for system performance?
D. Improved security
Answer: C
Q 49. What happens when a Linux system exhausts its available swap space, and there is still high
memory demand?
Answer: A
Q 50. In what year was the GNU General Public License (GPL) first applied to the Linux kernel?
A. 1990
B. 1995
C. 1985
D. 2000
Answer: A
Q 51. What is the primary purpose of the /mnt directory in a Linux file system structure?
Answer: C
Q 52. What happens when a Linux system experiences high memory demand, and available RAM is
insufficient to accommodate all active processes?
A. Processes are terminated
Answer: B
Q 53. You have a file named "document.txt" in your home directory, and you want to make a
backup of it in the same directory with the name "document_backup.txt." What command should
you use?
A. cp document.txt document_backup.txt
B. mv document.txt document_backup.txt
Answer: A
Q 54. Which Linux distribution is known for its rolling release model, where software is continually
updated?
A. CentOS
B. Fedora
C. Arch Linux
D. Debian
Answer: C
Q 55. In a Unix-like file system structure, which directory contains system configuration files?
A. /home
B. /etc
C. /usr
D. /tmp
Answer: B
Q 56. Which Linux directory contains dynamic runtime data and log files, such as system logs and
mail spools?
A. /mnt
B. /var
C. /bin
D. /lib
Answer: B
Q 57. Which component in the Linux architecture handles user authentication and authorization?
A. Kernel
B. Shell
D. X Window System
Answer: C
Q 58. Which Linux feature provides security by isolating processes and controlling access to system
resources?
A. Shell
B. Kernel
C. Firewall
D. SELinux
Answer: D
Q 59. In a hierarchical file system structure, which directory contains the user-specific files and
configurations?
A. /var
B. /etc
C. /home
D. /lib
Answer: C
Q 60. What is the term for a situation in which a Linux system relies heavily on swap space due to
memory overcommitment?
A. Thrashing
B. Swapping
C. Buffering
D. Paging
Answer: A
Q 61. You are currently in the directory /var/log in the Linux terminal. To access a file named
syslog.log located in the /var/log/archives directory, what is the correct relative path?
A. /var/log/syslog.log
B. archives/syslog.log
C. ../archives/syslog.log
D. /archives/syslog.log
Answer: B
Q 62. You want to create an empty directory named "images" in your current location using the
Linux terminal. What command should you use?
A. touch images
B. mkdir images
C. newdir images
D. make images
Answer: B
Q 63. What is the primary difference between the root directory (/) and the home directory (~) in
Linux?
A. The root directory is for system files, while the home directory is for user files
B. The root directory is for temporary files, while the home directory is for system files
C. The root directory is where user files are stored, while the home directory is for system files
Answer: A
Q 64. In a Linux file system, what is the root directory often represented by?
A. / (forward slash)
B. \ (backslash)
C. : (colon)
D. ; (semicolon)
Answer: A
Q 65. Which of the following methods allows you to install Linux alongside an existing operating
system without affecting it?
A. Dual boot
B. Overwriting
C. Virtualization
D. Wubi installation
Answer: A
Q 66. Which parameter can be adjusted in Linux to reduce swap space usage and prioritize keeping
data in RAM?
A. Swappiness
B. Overcommit ratio
C. Filesystem size
D. Disk partition
Answer: A
Q 67. In a Linux terminal, you are located in the directory /home/user/music. You want to navigate
to a directory named photos located in the same directory. Which path should you use?
A. /photos
B. ./photos
C. ~/photos
D. photos
Answer: D
Q 68. What is the primary purpose of a Live CD or Live USB when installing Linux?
Answer: B
Q 69. In a Linux terminal, you are located in the directory /home/user/documents. You need to
access a file named report.pdf in the directory /home/user/downloads. What is the correct
relative path?
A. /home/user/downloads/report.pdf
B. ../downloads/report.pdf
C. downloads/report.pdf
D. ~/downloads/report.pdf
Answer: C
Q 70. Which component in the Linux architecture is responsible for managing system calls and
providing an interface for user applications?
A. Kernel
B. Shell
C. Registry
D. File System
Answer: A
Q 71. What is the primary function of the /dev directory in a Linux file system structure?
Answer: A
Q 72. What is the primary difference between RAM and swap space in a Linux system?
B. RAM is used for running applications, while swap space stores user files
C. RAM is faster but limited, while swap space is slower but abundant
Q 73. In the Linux terminal, you are in the directory /var/www/html and need to create a new
subdirectory named "pictures." What command should you use?
A. make /pictures
B. mkdir pictures
C. create pictures
D. mk pictures
Answer: B
Q 74. You want to navigate to your home directory in the Ubuntu terminal. What command will
you use?
A. goto ~
B. cd /home
C. cd ~
D. cd /
Answer: C
Q 75. What event led to the development of the Linux operating system by Linus Torvalds?
C. A school project
Answer: B
Q 76. What is the primary goal of the Windows Task Manager and the Linux Task Manager (e.g.,
top, htop)?
Answer: B
Q 77. You are in the directory /home/user/documents in the Linux terminal, and you want to
create a subdirectory named "work" within this directory. However, you want to avoid any error
messages if it already exists. What command should you use?
A. mkdir -p work
B. make work
C. mkdir -u work
D. mkwork work
Answer: A
Q 78. Which file in a Linux system is used to specify the location and size of the swap partition or
swap file?
A. /etc/partitions
B. /etc/fstab
C. /swap.conf
D. /etc/swap
Answer: B
Q 79. What is the purpose of the /bin directory in a Linux file system structure?
Answer: C
Q 80. You need to create a new file named "book.txt" in your home directory using the Linux
terminal. What command should you use?
A. new book.txt
B. make book.txt
C. create ~/book.txt
D. touch ~/book.txt
Answer: D
Q 81. You are in the directory /home/user/photos in the Linux terminal, and you want to create a
new file named "vacation.jpg" within this directory. What command should you use?
A. touch /home/user/photos/vacation.jpg
B. newfile vacation.jpg
C. makefile /home/user/photos/vacation.jpg
D. touch vacation.jpg
Answer: D
C. Temporary files
D. Configuration files
Answer: B
Q 83. In the Ubuntu terminal, you want to move one directory up from your current location. What
command will you use?
A. cd ..
B. cd /
C. cd -
D. cd ~
Answer: A
Answer: B
Q 85. Which programming language is primarily used for developing the Linux Kernel?
A. C++
B. Python
C. Java
D. C
Answer: D
Answer: B
A. Device drivers
B. System calls
C. Shell scripts
D. Process scheduler
Answer: C
Q 88. Which type of kernel architecture combines the advantages of both monolithic and
microkernel designs by providing a modular structure with certain essential functions running in
kernel space?
A. Monolithic kernel
B. Micro kernel
C. Hybrid kernel
D. Exo kernel
Answer: C
Q 89. Which type of kernel architecture is often associated with the Linux OS?
A. Monolithic kernel
B. Micro kernel
C. Hybrid kernel
D. Exo kernel
Answer: A
A. FAT
B. FAT32
C. EXT3
D. NTFS
Answer: C
Q 91. Which bootloader is commonly used in Linux distributions to load the Linux kernel into
memory during the boot process?
A. LILO
B. GRUB
C. System-boot
D. Syslinux
Answer: B
Q 92. During the Linux boot process, what is the final step that occurs after the kernel is loaded
and the init process starts?
Answer: A
Q 93. Which directory contains user-specific configuration files and data in a typical Linux system?
A. /etc
B. /var
C. /proc
D. /home
Answer: D
Q 94. In the Linux file system, where are all the device files typically located?
A. /dev
B. /var
C. /etc
D. /bin
Answer: A
Answer: B
A. # symbol
B. ~ symbol
C. ! symbol
Answer: B
A. @ symbol
B. ~ symbol
C. . symbol
D. .. symbol
Answer: C
Q 98. To change the ownership of a file in Linux, which command is typically used?
A. chmod
B. chown
C. chgrp
D. finger
Answer: B
Q 99. In a directory, if you want to see the long listing of all files and directories with their
modification time in reverse order (most recent first), which option is used with ‘ls’ command?
A. -t
B. -l
C. -la
D. -lt
Answer: D
Q 100. What is the role of Master Boot Record (MBR) in the boot process of BIOS-based Linux
system?
Answer: C
Q 101. What is the primary difference between find and locate commands in Linux?
A. ‘find’ searches based on file attributes while ‘locate’ uses an index for faster search
B. ‘find’ is used for searching files, ‘locate’ is used for searching directories
D. ‘find’ can search within current directory while ‘locate’ can search the entire file system
Answer: A
Answer: A
Answer: C
A. Read
B. Write
C. Execute
D. Both a and b
Answer: B
Q 105. You have a file with permission “-rwxr-xr--”. Who can modify the file contents?
Answer: A
Q 106. You want to grant read and write permissions to the owner, group and others for a file
called ‘file.txt’. Which of the following command you will use to achieve it?
Q 107. You need to set execute permission to the owner, group and others for a file called
‘testcode.exe’. Which of the following command you will give?
D. both b and c
Answer: D
Q 108. You need to change the group ownership of a file ‘report.xls’ to a new group called ‘sales’.
Which of the following command you will give?
Answer: B
A. Proprietary codebase
D. Closed-source licensing
Answer: C
Q 110. Which component of the Linux operating system manages hardware resources and acts as
an interface between the hardware and software?
A. Kernel
B. Shell
C. Compiler
D. Window manage
Answer: A
Q 111. If a user wants a Linux distribution specifically designed for servers and enterprise
environments, which distribution would be the most suitable choice?
A. Ubuntu
B. Fedora
C. CentOS
D. Linux Mint
Answer: C
C. It allows processes to use more memory than physically available by utilizing disk space as virtual
memory.
Answer: C
Q 113. In Linux, which directory contains system configuration files and libraries essential for
system booting?
A. /home
B. /var
C. /etc
D. /bin
Answer: C
A. mv
B. cd
C. ls
D. cp
Answer: B
Q 115. What is an absolute path in Linux?
Answer: A
Answer: B
Answer: A
Answer: A
A. passwd
B. passchange
C. usermod
D. pswd
Answer: A
Q 120. Which command is used to find files and directories based on their names in Linux?
A. search
B. locate
C. find
D. grep
Answer: C
A. rd
B. rm
C. del
D. erase
Answer: B
Q 122. Which option is used with grep to display lines that do not match the specified word?
A. -m
B. -v
C. -x
D. -n
Answer: B
Answer: B
Q 124. Which command displays lines before the result in a grep search?
A. grep -A
B. grep -B
C. grep -C
D. grep -P
Answer: B
Q 125. What does the -C1 option in the grep command signify?
A. Displays the line and the next succeeding line after the result
C. Displays the line and one preceding line before and after the result
D. Displays the line and two succeeding lines after the result
Answer: C
Q 126. In the command sed 's/apples/oranges/g' file.txt, what does 'g' stand for?
Answer: A
Answer: B
A. s/old/new/
B. c\
C. s/.*/new text/
D. s/^/new text/
Answer: B
Answer: C
Answer: C
Q 131. Which sed command is used to replace the pattern "apple" with "orange" in a file named
fruits.txt?
Answer: A
C. To compress files
D. To create a new file
Answer: B
Answer: C
Answer: B
Answer: C
Answer: B
Q 137. What does the grep -A1 command do?
C. Displays the line after and the line before the result
D. Displays the line and the next succeeding line after the result
Answer: D
Q 138. In the comm command, what does the first column indicate?
Answer: B
Q 139. Which of the following statements about the comm command is true?
B. Input files must be in sorted order for the comm command to work correctly
Answer: B
Q 140. How can you display the first column (non-matching items of the first file) using the comm
command?
Answer: B
Answer: A
Q 142. If you want to display the second column (non-matching items of the second file), what
option would you use?
A. -13
B. -23
C. -33
D. -12
Answer: A
Q 143. What does the third column in the comm command output represent?
Answer: B
Answer: C
Answer: B
Q 146. Which programming language is the Linux kernel primarily developed in?
A. C++
B. Python
C. Java
D. C
Answer: D
A. A device driver
C. A user program
D. A kernel process
Answer: B
Q 148. In monolithic kernel architecture, where are all the basic system services packaged?
A. User space
B. Application space
C. Kernel space
D. Device space
Answer: C
Q 149. What is the main advantage of micro kernel architecture over monolithic kernels?
B. Easier maintenance
Answer: B
Q 150. Which part of the Linux kernel manages the interaction between user space and kernel
space?
A. Device module
D. Microkernel
Answer: C
Q 151. What is the purpose of the GNU C library in the Linux kernel architecture?
B. Provides a mechanism for switching between user space and kernel space
Answer: B
Q 152. In the context of the Linux kernel, what does the term "user space" refer to?
Answer: B
Q 153. What role does the system call interface play in the Linux kernel architecture?
B. Provides a way for user space applications to interact with the kernel
Answer: B
Q 154. Which component of the Linux kernel handles file management, memory management, and
process management?
A. User Space
B. Device Module
Answer: C
Q 155. What does the kernel act as in the context of resource management?
A. User interface
B. Graphics manager
C. Device driver
D. Resource manager
Answer: D
Q 156. What is the key difference between Windows and Linux in terms of source code
availability?
Answer: C
Q 157. Which operating system allows developers to view, modify, and distribute their own
versions of the operating system?
A. Windows
B. Linux
Answer: B
Q 158. What does NTFS stand for in the context of Windows file systems?
Answer: A
A. NTFS
B. FAT32
C. ext4
D. HFS+
Answer: C
Q 160. What does the user privilege system in Linux require for making significant changes to the
system?
A. Administrative privileges
B. Guest privileges
C. User privileges
D. Moderator privileges
Answer: A
Q 161. Which operating system is generally considered more secure due to its Unix-based
architecture?
A. Windows
B. macOS
C. Linux
D. Android
Answer: C
Q 162. Which operating system allows a higher degree of customization, including modification of
desktop environments?
A. Windows
B. macOS
C. Linux
D. Android
Answer: C
Q 163. Which operating system is known for being resource-intensive and requiring powerful
hardware to run smoothly?
A. Linux
B. macOS
C. Windows
D. Android
Answer: C
Q 164. What is the primary reason for Linux's ability to run efficiently on a wide range of devices?
Answer: C
Q 165. Which operating system has official support from Microsoft and a vast user base with
online forums and resources?
A. Windows
B. macOS
C. Linux
D. Android
Answer: A
Answer: B
Q 167. What does the boot loader contain instructions about?
Answer: A
A. Hardware components
C. User interfaces
D. System services
Answer: B
Answer: B
Q 170. When does the operating system display the login screen?
Answer: D
Answer: B
Q 172. What initiates the Power-On Self-Test (POST) during the boot process?
A. Boot Loader
B. Kernel
C. BIOS/UEFI
D. Init Process
Answer: C
A. Creates directories
C. Deletes files
D. Renames files
Answer: B
Q 174. How can you create a new file using the 'cat' command?
B. cat -n newfile
D. cat -e newfile
Answer: C
Answer: B
Q 176. How can you copy the content of 'source_file' to 'destination_file' using the 'cat' command?
Answer: A
Q 177. What does the command 'cat file1 file2 file3 > combo' do?
A. Combines the contents of file1, file2, and file3 into a new file called 'combo'
Answer: A
Q 178. What does the command 'cat << EOF' allow you to do in Linux?
Answer: C
Q 179. How can you append the result of 'source_file' to 'destination_file' without overwriting the
destination file?
Answer: C
Q 180. What is the purpose of the 'cat' command when used with the greater than sign (>)?
A. To display file contents
C. To delete a file
D. To rename a file
Answer: B
Q 181. How can you display line numbers in front of each line of a file using the 'cat' command?
A. cat -n filename
B. cat -b filename
C. cat -l filename
D. cat -t filename
Answer: A
Q 182. What does the command 'cat file1 file2 > combined_file' do?
B. Merges the contents of file1 and file2 into a new file named 'combined_file'
Answer: B
Q 183. How can you append the content of 'file1' to 'file2' using the 'cat' command?
Answer: B
Q 184. What does the 'cat' command do when used inside pipes in Linux?
B. It renames files
C. It deletes files
D. It creates new directories
Answer: A
A. A programming language
B. An operating system
C. A web browser
D. A hardware component
Answer: B
A. Bill Gates
B. Linus Torvalds
C. Steve Jobs
D. Richard Stallman
Answer: B
Answer: C
A. It is always bug-free
Answer: B
Q 189. Which Linux distribution is known for its enterprise solutions and stability?
A. Ubuntu
B. Fedora
C. CentOS
D. Arch Linux
Answer: C
Answer: C
A. NTFS
B. FAT32
C. ext4
D. HFS+
Answer: C
Answer: A
Q 193. Which command is used to update the package list and upgrade installed packages in
Debian-based Linux distributions?
C. pacman -Syu
D. dnf update
Answer: A
Answer: C
A. Linus Torvalds
B. Richard Stallman
C. Steve Jobs
D. Bill Gates
Answer: A
Q 196. In which year was the Linux kernel first released by Linus Torvalds?
A. 1985
B. 1991
C. 2000
D. 2005
Answer: B
Q 197. Which organization plays a significant role in promoting and advancing the Linux platform?
A. Linux Corporation
B. GNU Project
C. Linux Foundation
Q 198. What are the minimum hardware requirements for running a basic Linux system?
Answer: B
Q 199. Which of the following is NOT a core component of the Linux operating system?
A. Kernel
B. Shell
C. GUI
D. Filesystem
Answer: C
Q 200. Which Linux distribution is known for its focus on stability and long-term support?
A. Ubuntu
B. Fedora
C. CentOS
D. Arch Linux
Answer: C
A. YUM
B. RPM
C. APT
D. DNF
Answer: C
Q 202. Which Linux distribution is often associated with Red Hat and primarily used in enterprise
environments?
A. Ubuntu
B. Fedora
C. CentOS
D. Kali Linux
Answer: C
A. High cost
B. Limited customization
C. Vendor lock-in
Answer: D
Q 204. Which Linux feature provides the ability to run multiple processes concurrently without
interference?
A. Multitasking
B. Multiprocessing
C. Multithreading
D. Multicore
Answer: A
Q 205. What is the primary role of the GRUB bootloader in a Linux system?
Answer: B
Q 206. Which Linux component is responsible for managing hardware resources and providing
system services?
A. Shell
B. Kernel
C. GUI
D. Compiler
Answer: B
Q 207. Which Linux distribution is often used for penetration testing and ethical hacking?
A. Ubuntu
B. Fedora
C. CentOS
D. Kali Linux
Answer: D
Answer: B
Q 209. Which Linux distribution is designed for experienced users who prefer a highly customizable
system?
A. Ubuntu
B. Fedora
C. CentOS
D. Arch Linux
Answer: D
Q 210. Which feature is characteristic of the systemd init system used in many modern Linux
distributions?
Answer: C
Q 211. What is the primary function of the package manager in a Linux distribution?
Answer: C
Q 212. Which of the following is NOT a file system commonly used in Linux?
A. NTFS
B. ext4
C. XFS
D. Btrfs
Answer: A
Q 213. Which Linux distribution is a popular choice for servers and cloud environments due to its
lightweight nature?
A. Ubuntu
B. Fedora
C. CentOS
D. Alpine Linux
Answer: D
Q 214. When choosing a suitable Linux distribution, what should you consider to match your needs
and preferences?
Q 215. Which command is used to list files and directories in a Linux terminal?
A. list
B. show
C. display
D. ls
Answer: D
Answer: B
Q 217. What does the acronym "GPL" stand for in the context of Linux and open-source software?
Answer: A
Q 218. Which text editor is commonly found on most Linux systems and is often used for quick text
editing in the terminal?
A. Vim
B. Nano
C. Gedit
D. Emacs
Answer: B
Q 219. Which command is used to compress and decompress files in Linux?
A. zip
B. tar
C. unzip
D. compress
Answer: B
A. Bash
B. Zsh
C. Ksh
D. Tcsh
Answer: A
A. mkdir
B. touch
C. cd
D. rmdir
Answer: A
Answer: C
Q 223. Which file is used to configure the network settings in a Linux system?
A. /etc/network.conf
B. /etc/network/interfaces
C. /etc/hosts
D. /etc/config/network
Answer: B
Q 224. Which Linux command is used to display the current working directory in the terminal?
A. pwd
B. dir
C. ls
D. cd
Answer: A
A. Process Status
B. Print Screen
C. Program Search
D. Package Source
Answer: A
Q 226. Which package manager is commonly used in Red Hat and CentOS Linux distributions for
installing and managing software packages?
A. YUM
B. APT
C. RPM
D. DNF
Answer: A
Q 228. What does the acronym "SSH" stand for in the context of secure communication in Linux?
A. Secure Shell
B. Superuser Shell
Answer: A
Answer: B
Q 230. Which runlevel is typically used for a Linux system to enter a state where it is fully
operational with a graphical user interface (GUI)?
A. Runlevel 2
B. Runlevel 3
C. Runlevel 5
D. Runlevel 7
Answer: C
Answer: C
Q 232. Which Linux utility is commonly used for monitoring system performance and resource
usage?
A. top
B. ping
C. scp
D. grep
Answer: A
Answer: C
Q 234. Which Linux distribution is known for its rolling release model, where updates are
continuous rather than version-based?
A. Debian
B. Ubuntu
C. Fedora
D. Arch Linux
Answer: D
Q 235. What is the primary role of the Linux kernel in the operating system?
Answer: C
Q 236. In terms of architecture, what is a key difference between Windows and Linux operating
systems?
A. Windows uses a microkernel, while Linux uses a monolithic kernel
Answer: A
Answer: C
Q 238. Which configuration file in Linux is commonly used to customize system-wide settings and
environment variables?
A. .bashrc
B. /etc/environment
C. /usr/bin/config
D. /home/user/settings.conf
Answer: B
Q 239. In Linux, what is the typical location for system-wide software packages and libraries?
A. /home
B. /opt
C. /usr
D. /var
Answer: C
Q 240. When installing a new Linux distribution, which of the following partitions is NOT a
common requirement?
A. /boot
B. /home
C. /root
D. /swap
Answer: C
Q 241. Which of the following bootloaders is commonly used for dual-booting Linux and Windows
systems?
A. GRUB
B. LILO
C. BCD
D. NTFS
Answer: A
Answer: B
Q 243. Which command can be used to add a user to a specific group in Linux?
A. useradd
B. passwd
C. usermod
D. adduser
Answer: C
Answer: C
Q 246. Which configuration file is commonly used to set the system's default runlevel in Linux?
A. /etc/runlevel.conf
B. /etc/inittab
C. /etc/rc.local
D. /etc/bootconfig
Answer: B
Answer: B
Q 248. What is the purpose of the 'dpkg' command in Debian-based Linux distributions?
Answer: A
Q 249. What is the purpose of the 'yum' command in Red Hat-based Linux distributions?
A. Creating user accounts
Answer: C
Answer: B
Answer: B
Q 252. Which Linux directory contains system log files and is used for troubleshooting and
monitoring system events?
A. /etc
B. /var
C. /usr
D. /tmp
Answer: B
Q 253. When configuring a network interface in Linux, which command is commonly used to set
the IP address and subnet mask?
A. ipconfig
B. ifconfig
C. netconfig
D. setip
Answer: B
Q 254. Which package manager is commonly used in Arch Linux for installing and managing
software packages?
A. RPM
B. DPKG
C. APT
D. Pacman
Answer: D
Q 255. Which Linux component is responsible for managing hardware drivers and device
interactions?
A. Kernel
B. Shell
C. Bootloader
D. Filesystem
Answer: A
Q 256. What is a major architectural difference between Windows and Linux when it comes to file
systems?
Answer: A
Answer: B
Q 258. Which configuration file is used to customize the behavior of the Bash shell for a specific
user?
A. .bash_profile
B. /etc/environment
C. /usr/bin/config
D. /etc/bashrc
Answer: A
Q 259. In Linux, which directory typically contains executable files and command binaries for all
users?
A. /bin
B. /etc
C. /usr/local
D. /var
Answer: A
Q 260. During the Linux installation process, which partition is commonly designated as the root
file system?
A. /boot
B. /home
C. /root
D. /swap
Answer: C
Answer: B
Answer: A
Answer: B
Q 265. Which runlevel in Linux is typically used for single-user mode with minimal services
running?
A. Runlevel 0
B. Runlevel 1
C. Runlevel 3
D. Runlevel 5
Answer: B
Q 266. What is the primary function of the 'sed' command in Linux?
Answer: B
Q 267. Which package manager is commonly used in SUSE Linux distributions for software
management?
A. YUM
B. RPM
C. APT
D. Zypper
Answer: D
Answer: D
Answer: B
Answer: C
Q 271. Which Linux directory contains temporary files that can be deleted periodically to free up
space?
A. /etc
B. /tmp
C. /home
D. /var
Answer: B
Answer: C
Answer: D
Q 274. Which utility in Linux is commonly used for managing system and application logs, including
log rotation and retention policies?
A. syslogd
B. logrotate
C. logstash
D. logsrv
Answer: B
Q 275. What is the first stage of the boot process in a typical Linux system?
A. Bootloader
B. Kernel
C. Init
D. Shell
Answer: A
Q 276. In the context of partitioning, what is the purpose of the Master Boot Record (MBR)?
Answer: B
Q 277. What does "dual boot" mean in the context of operating systems?
Answer: B
Answer: B
Q 279. In Linux, what does the 'df' command do when executed in a terminal?
Answer: D
Q 280. Which command-line utility in Linux is commonly used for disk partitioning and
management?
A. lsblk
B. gparted
C. fdisk
D. mkfs
Answer: C
Q 281. When adding swap space to a Linux system, what is the purpose of the 'mkswap'
command?
Answer: C
Q 282. In a typical boot process, what is the main role of the bootloader?
Answer: B
Q 283. What is the name of the default partitioning scheme used in Linux installations?
A. NTFS
B. ext4
C. FAT32
Answer: B
Q 284. In a dual-boot setup, how can you choose the operating system you want to boot into at
startup?
Answer: B
Answer: C
Q 286. Which part of the boot process in Linux is responsible for loading and initializing system
services and daemons?
A. Bootloader
B. Kernel
C. Init
D. Shell
Answer: C
Q 287. When configuring swap space, what is the recommended size for the swap partition,
relative to physical RAM?
Answer: A
Q 288. In the context of disk partitioning, what does "GPT" stand for?
Answer: B
Q 289. When using the 'fdisk' command for disk partitioning, what key allows you to create a new
partition?
A. 'C'
B. 'N'
C. 'D'
D. 'P'
Answer: B
Answer: B
Q 292. What is the primary function of the 'initrd' (initial RAM disk) in the Linux boot process?
Answer: B
Q 293. When configuring a swap file, what is the recommended size for the swap file, relative to
physical RAM?
Answer: B
A. System logs
C. Network interfaces
Answer: B
Answer: C
Q 296. What is the function of the 'mount' command in Linux?
Answer: C
Q 297. When configuring virtual memory, what is the Linux equivalent of the Windows "page file"?
A. Kernel module
B. Swap partition
C. RAM disk
D. Temporary file
Answer: B
Q 298. Which command allows you to view detailed disk space usage in Linux, including filesystem
type and space availability?
A. du
B. df
C. diskusage
D. spaceinfo
Answer: B
Answer: D
Q 300. In a typical boot process, what is the role of the 'initramfs' or 'initrd' image?
Answer: C
Q 301. When configuring a dual-boot system, what is the significance of the "bootloader
configuration"?
Answer: C
Answer: A
Q 303. When using the 'lsblk' command in Linux, what kind of information does it provide?
Answer: B
Q 304. In a dual-boot system, how can you switch between the installed operating systems during
the boot process?
Answer: C
C. To compile C programs
Answer: A
Answer: C
Answer: C
Answer: D
Q 309. What does the 'swapon -s' command display in Linux?
B. System logs
Answer: A
Q 310. What is the primary role of the 'init' process in the Linux boot sequence?
Answer: B
Answer: C
Answer: C
Q 313. When adding swap space in Linux, what is the recommended file system type for the swap
partition?
A. ext4
B. NTFS
C. swap
D. FAT32
Answer: C
Q 314. What is the purpose of the 'noexec' option in Linux file systems?
Answer: A
Marks 2
Q 1. What is the correct sequence of commands to display the contents of a file named
"example.txt" in Linux?
A. cat example.txt
B. display example.txt
C. open example.txt
D. show example.txt
Answer: A
Q 2. Which sequence of commands allows you to display the first 10 lines of a file named
"data.txt" in Linux?
A. head -n 10 data.txt
B. first 10 data.txt
C. cat -n 10 data.txt
Answer: A
Q 3. What is the correct sequence of commands to display the last 20 lines of a file named "log.txt"
in Linux?
A. tail -n 20 log.txt
B. last 20 log.txt
D. end 20 log.txt
Answer: A
Q 4. Which sequence of commands allows you to display the contents of a file named "output.txt"
and also number the lines?
A. show -n output.txt
B. cat -b output.txt
C. nl output.txt
Answer: C
Q 5. What is the correct sequence of commands to display the contents of multiple files named
"file1.txt" and "file2.txt" in Linux?
C. display --files=file1.txt,file2.txt
Answer: A
Q 6. Which sequence of commands allows you to display the contents of a file named "report.txt"
and paginate the output, displaying one screen at a time?
A. more report.txt
B. less report.txt
D. display -p report.txt
Answer: B
Q 7. What is the correct sequence of commands to display the contents of a file named "notes.txt"
and search for a specific term "Linux"?
Answer: D
Q 8. Which sequence of commands allows you to display the contents of a file named
"summary.txt" and sort the lines alphabetically?
B. sort summary.txt
D. order summary.txt
Answer: A
Q 9. What is the correct sequence of commands to display the contents of a file named
"details.txt" and display line numbers?
A. cat -n details.txt
C. nl details.txt
D. show -l details.txt
Answer: A
Q 10. Which sequence of commands allows you to display the contents of a file named "info.txt"
and display line numbers, including empty lines?
A. nl -ba info.txt
C. display -e info.txt
Answer: A
Q 11. During a Linux installation, what is the purpose of the chroot command, and when is it
typically used?
A. chroot is used to change the root directory for installation purposes, ensuring that commands
executed within the chroot environment do not affect the actual root filesystem.
B. chroot is used to create a new user account during the installation process, allowing secure access
to the system.
C. chroot is used to change the default shell for the root user, enhancing security by limiting access to
certain commands.
D. chroot is used to configure the network settings of the Linux system, ensuring proper connectivity
during and after installation.
Answer: A
Q 12. Which Linux file system feature, represented by the command tune2fs -l /dev/sda1, displays
the last time a file system was mounted and the number of times it has been mounted?
A. Mount Count
C. Mount Frequency
D. Mount History
Answer: B
Q 13. During Linux installation, which partitioning scheme and file system combination provides
the best performance and fault tolerance for a system with multiple hard drives?
Answer: D
Q 14. Which command, commonly used in Linux installation scripts, is used to format a partition
with the ext4 file system?
B. mkfs.ext4 /dev/sda1
D. ext4format /dev/sda1
Answer: B
A. A. grub-install is used to create a new GRUB configuration file, ensuring compatibility with the
installed hardware.
B. B. grub-install is used to reinstall the GRUB bootloader, updating the Master Boot Record (MBR) or
EFI system partition to include GRUB.
C. C. grub-install is used to configure the graphical interface for GRUB, allowing users to customize
the boot menu appearance.
D. D. grub-install is used to set up encrypted boot partitions, ensuring data security during the boot
process.
Answer: B
Q 16. Which command is used to display the first 15 lines of a file named "data.txt" in Linux?
A. head -n 15 data.txt
B. cat -l 15 data.txt
C. display --start=1 --end=15 data.txt
D. first 15 data.txt
Answer: A
Q 17. What is the correct sequence of commands to display the last 10 lines of a file named
"log.txt" and continuously monitor the file for changes?
A. tail -f -n 10 log.txt
C. tail -c 10 -f log.txt
D. monitor -l 10 log.txt
Answer: A
Q 18. Which command is used to display the contents of a file named "notes.txt" and highlight
lines containing the word "important"?
Answer: B
Q 19. What is the correct sequence of commands to display the contents of a file named
"report.txt" in reverse order (from the last line to the first line)?
A. cat -r report.txt
B. tac report.txt
D. reverse report.txt
Answer: B
Q 20. Which command is used to display the differences between two files named "file1.txt" and
"file2.txt" in Linux?
Answer: A
Q 21. What is the correct sequence of commands to display the contents of a file named
"output.txt" and save the output to a new file named "result.txt"?
Answer: A
Q 22. Which command is used to display the contents of a file named "document.txt" and show
non-printable characters?
C. show -v document.txt
Answer: A
Q 23. What is the correct sequence of commands to display the contents of a file named "file.txt"
and display the line numbers, starting from 100?
C. nl -b a -n 100 file.txt
Answer: C
Q 24. Which command is used to display the size of files and directories in a human-readable
format in Linux?
A. ls -sH
B. du -h
C. size -hr
D. info -human
Answer: B
Q 25. What is the correct sequence of commands to display the contents of a file named "data.txt"
and display only the lines containing the word "Linux"?
Answer: A
Q 26. In Linux, what is the purpose of the dd command during the installation process, and how is
it commonly used?
A. A. dd is used for disk defragmentation, optimizing file placement on the hard drive.
B. B. dd is used for creating bootable USB drives or copying raw data between devices or partitions
bit by bit.
C. C. dd is used for dynamic disk allocation, ensuring efficient usage of available storage space.
D. D. dd is used for directory duplication, creating exact copies of specific folders during installation.
Answer: B
Q 27. During a Linux installation, which command is used to configure the system's hostname,
allowing it to be identified on the network?
A. sethostname
B. hostnamectl
C. confighost
D. netname
Answer: B
Q 28. During a Linux installation, which command is used to create a new partition table on a block
device, ensuring proper initialization for further partitioning?
A. mkpart
B. parted
C. fdisk
D. gdisk
Answer: B
Q 29. During the Linux installation process, which command is used to configure the Logical
Volume Manager (LVM) for dynamic disk allocation, allowing for easy resizing and snapshot
creation?
A. lvcreate
B. pvdisplay
C. vgextend
D. lvextend
Answer: A
Q 30. In Linux, which command is used to install the bootloader in the Master Boot Record (MBR)
or EFI system partition, ensuring the system can boot successfully?
A. grub-install
B. bootctl install
C. syslinux-install_update
D. lilo
Answer: A
Answer: C
Answer: C
Q 33. You are currently in the directory /home/user/documents in the Linux terminal. What
command should you use to create a new subdirectory named "projects" within this directory?
A. create projects
B. make projects
C. mkdir projects
D. newdir projects
Answer: C
Q 34. In a Linux terminal, you are located in the directory /home/user/documents. You want to
navigate to the directory /var/log. Which path should you use?
A. /var/log
B. ../var/log
C. /home/user/var/log
D. var/log
Answer: A
Q 35. What is the purpose of the /tmp directory in a Linux file system structure?
Answer: B
Q 36. Which Linux distribution is often used for ethical hacking and penetration testing?
A. Ubuntu
B. Fedora
C. Kali Linux
D. Debian
Answer: C
Q 37. How can you quickly navigate to your home directory from any location in the Ubuntu
terminal?
A. cd /home
B. cd ~
C. cd ..
D. cd /
Answer: B
Q 38. Which directory in the Linux file structure contains system configuration files and is not
intended for user manipulation?
A. /home
B. /var
C. /etc
D. /usr
Answer: C
Answer: C
Q 40. In a Linux terminal, you are in the directory /etc/network. To access a configuration file
located in the /etc/security directory, what is the correct relative path?
A. /etc/security/config.txt
B. ./security/config.txt
C. ../security/config.txt
D. security/config.txt
Answer: C
Q 41. What type of file path separator does Linux use?
A. \ (backslash)
B. / (forward slash)
C. : (colon)
D. ; (semicolon)
Answer: B
Q 42. Which component of the Linux operating system is responsible for managing hardware
resources?
A. Kernel
B. Shell
C. Compiler
D. Text Editor
Answer: A
Q 43. In the Ubuntu terminal, you want to copy a file named "file.txt" from your current directory
to the "/backup" directory. What command should you use?
A. cp file.txt /backup
B. mv file.txt /backup
D. cp /backup/file.txt
Answer: A
A. 1991
B. 1984
C. 2000
D. 1995
Answer: A
A. Windows
B. Linux
Answer: B
Q 46. To navigate to the root directory in the Ubuntu terminal, which command should you use?
A. cd /
B. cd .
C. cd ~
D. cd ..
Answer: A
B. User authentication
C. Command interpretation
D. Disk management
Answer: C
Q 48. You need to create a new directory named "docs" in your current directory in the Ubuntu
terminal. What command will you use?
A. create docs
B. mkdir docs
C. touch docs
D. newdir docs
Answer: B
Q 49. The kernel of an operating system is responsible for what aspect of system operation?
A. Low-level hardware
C. Applications
D. Network connectivity
Answer: A
Q 50. Which feature is typically associated with the "package manager" in Linux distributions?
B. Software updates
C. Dependency management
D. Hardware drivers
Answer: C
Q 51. You are currently in the directory /usr/bin in the Linux terminal. You want to move to the
parent directory, which is /usr. What is the correct relative path?
A. /usr
B. ../usr
C. ..
D. /bin
Answer: B
Q 52. Which Linux distribution is often considered a good choice for beginners due to its user-
friendly nature?
A. Debian
B. CentOS
C. Arch Linux
D. Ubuntu
Answer: D
Q 53. In the Linux architecture, what is the primary purpose of the init process?
Answer: C
Q 54. You have a file named "file.txt" in your current directory, and you want to create a copy of it
in a different location, say, in the /backup directory. What command should you use?
A. cp file.txt /backup
C. mv file.txt /backup
Answer: A
Q 55. Which Linux distribution is known for its use in servers and enterprise environments?
A. Ubuntu
B. Fedora
C. CentOS
D. Arch Linux
Answer: C
Q 56. If you give ‘pwd’ command, what type of path you will get in the output?
A. Relative path
B. Home path
C. Absolute path
Answer: C
Q 57. Suppose you are in a directory ‘/var/opt’ and you want to go to the directory ‘/var/log’.
Which of the following relative path you will use?
A. ./log
B. /var/log
C. ../log
D. Log
Answer: C
Q 58. You have two directories ‘dir1’ and ‘dir2’ in your home directory and you are currently in
your home directory. If you give command ‘cp -R dir1 dir2’ what it will do?
B. Copy the directory ‘dir1’ as the subdirectory under ‘dir2’ along with all its files and directories.
C. Move all the files only from directory ‘dir1’ to directory ‘dir2’
Answer: B
Q 59. You have two files called ‘file1.txt’ and ‘file2.txt’. Permissions on ‘file1.txt’ are ‘-rwxrwxrwx’
and permissions on ‘file2.txt’ are ‘-r—r—r—'. What command you will use to overwrite the
contents of ‘file2.txt’ with the content of ‘file1.txt’?
A. cp -r file1.txt file2.txt
B. cp -R file1.txt file2.txt
C. cp file1.txt file2.txt
D. cp -f file1.txt file2.txt
Answer: C
Q 60. Suppose you create a file with data “Hello!” store inside it. If you will give ‘ls -ls’ command
what will be the first column represent in the output?
A. 4
B. 7
C. 6
D. -rw-r--r--
Answer: A
Q 61. If you create a directory (which is empty) in Linux file system, how much memory space
allocated to it by default?
A. 512 bytes
B. 2048 bytes
C. 0 bytes
D. 4096 bytes
Answer: D
Q 62. If you give the command ‘link file1.txt file2.txt’, what will be the second column represents if
you give ls -l command with respect to ‘file1.txt’ and ‘file2.txt’?
A. 2 and 1
B. 1 and 2
C. 2 and 2
D. 1 and 1
Answer: C
Q 63. Suppose there is a file called ‘-myfile.txt’ in your current directory. Which of the following
command you will give to interactively delete this file?
A. rm -i -myfile.txt
B. rm -i -- -myfile.txt
C. rm -- -myfile.txt
Answer: B
A. Search the entire file system for file ‘file1.txt’ and display all files.
B. Search the locate database for the ‘file1.txt’ and display all files.
C. Search the locate database for ‘file1.txt’ and display all matching pattern by omitting new line
character.
Answer: C
Q 65. If you give command ‘touch -t 201210280605 file1.txt’, what it will do?
C. Display all the files having pattern ‘file1.txt’ and modification time as 2012-10-28 06:05
D. Set the access and modification date & time of file ‘file1.txt’ to 2012-10-28 06:05
Answer: D
B. unmount
C. fsck
D. df
Answer: A
Q 67. What Linux command is used to change the permissions of a file or directory?
A. chmod
B. chown
C. chdir
D. perm
Answer: A
Q 68. Which command is used to display information about disk space usage on Linux file systems?
A. du
B. ls
C. df
D. free
Answer: C
A. cat
B. more
C. head
D. less
Answer: A
Q 70. Which command is used to display the last few lines of a file in Linux?
A. tail
B. more
C. head
D. less
Answer: A
Q 71. What does the "w" permission allow in Linux file permissions
A. Read
B. Write
C. Execute
D. Rename
Answer: B
Q 72. Which symbol is used for redirecting the standard input from a file in Linux?
A. >
B. <
C. |
D. &
Answer: B
Answer: B
Answer: B
Q 75. Why is Linux known for its stability and security?
Answer: C
Q 76. What makes Linux a cost-effective option for individuals and businesses?
Answer: C
Q 77. What advantage does the open-source nature of Linux provide in terms of development and
maintenance?
Answer: B
Q 78. Which Linux distribution is the base for Ubuntu, Kali Linux, and Linux Mint?
B. Debian
C. Arch Linux
D. Slackware
Answer: B
Q 79. Which specialized Linux distribution is specifically designed for digital forensics and
penetration testing?
A. Puppy Linux
B. Raspberry Pi OS
C. Kali Linux
D. Tails
Answer: C
D. Educational use
Answer: C
A. Edubuntu
B. SoaS
C. Puppy Linux
D. Tails
Answer: A
Q 82. What is the primary focus of Qubes OS, a specialized Linux distribution?
A. Server management
B. Digital forensics
Answer: D
A. Alpine Linux
B. Raspberry Pi OS
C. Slackware
D. ClearOS
Answer: B
Q 84. What is the primary focus of SteamOS, a specialized Linux distribution developed by Valve
Corporation?
A. Educational use
C. Server management
D. Digital forensics
Answer: B
Q 85. Which Linux distribution is lightweight, security-oriented, and often used for containers?
A. Alpine Linux
B. ClearOS
C. Arch Linux
D. Slackware
Answer: A
Q 86. Which community-driven Linux distribution has an independent rolling-release model and its
package manager?
A. Void Linux
B. Solus
C. Debian
Answer: A
A. Server management
C. Educational use
Answer: D
Q 88. Which professor created the Minix operating system, serving as an educational tool for
students?
A. Linus Torvalds
B. Richard Stallman
C. Andrew S. Tanenbaum
D. Bill Gates
Answer: C
Q 89. What was the main purpose of Minix when it was developed by Andrew S. Tanenbaum?
A. Research purposes
B. Educational tool
C. Business applications
D. Entertainment platform
Answer: B
Q 90. Which Linux distribution is known for its focus on security through compartmentalization
using virtualization?
A. Ubuntu
B. Fedora
C. Qubes OS
D. CentOS
Answer: C
Q 91. What is the role of Linux in embedded systems and the Internet of Things (IoT)?
Answer: B
Q 92. Which term describes Linux distributions that are developed and maintained by the
community rather than a specific company?
A. Proprietary distributions
B. Corporate distributions
C. Community-driven distributions
D. Enterprise distributions
Answer: C
Q 93. What does the term "rolling-release distribution" mean in the context of Linux distributions?
B. The distribution provides continuous updates without a specific new version release.
Answer: B
Q 94. Which major Linux distribution is known for its focus on simplicity and minimalism, often
used for containers?
A. CentOS
B. Alpine Linux
C. Fedora
D. Ubuntu Server
Answer: B
Q 95. In what way did the release of Linux 0.01 contribute significantly to the development of the
Linux community?
Answer: C
Q 96. Which Linux distribution is specifically optimized for small and medium-sized businesses?
A. Red Hat
B. Ubuntu
C. ClearOS
D. Fedora
Answer: C
Q 97. What is the primary focus of Red Hat Enterprise Linux (RHEL), making it a popular choice for
enterprises?
B. Educational applications
D. Cloud computing
Answer: C
Q 98. What was the primary inspiration behind Linus Torvalds' creation of Linux?
Answer: B
Q 99. In which year was the first version of Linux, Linux 0.01, released by Linus Torvalds?
A. 1985
B. 1991
C. 1995
D. 2000
Answer: B
Q 101. What event marked the beginning of Linux's presence in the consumer market?
Answer: A
Q 102. Which operating system heavily influenced the development of Linux due to its multi-user,
multi-tasking capabilities?
A. Windows
B. Minix
C. macOS
D. Unix
Answer: D
Q 103. What was the key factor that led to the growth of the Linux community in its early stages?
A. Proprietary licensing
B. Closed-source development
C. Open-source nature
D. Paid subscriptions
Answer: C
Q 104. What made Linux a popular choice for enterprises and businesses in the late 1990s and
early 2000s?
B. It was more flexible, cost-effective, and secure than proprietary operating systems.
Answer: B
Q 105. Which term refers to the various versions of Linux created by different developer groups?
A. Versions
B. Revisions
C. Distributions
D. Variants
Answer: C
A. Only in servers
Answer: B
Q 107. What role did the open-source nature of Linux play in its adoption by enterprises?
Answer: B
Answer: B
Q 109. Which package manager is commonly used in Debian-based systems like Ubuntu?
A. yum
B. apt
C. pacman
D. dnf
Answer: B
Answer: B
Answer: C
Q 112. Which command is used to install a specific package named 'nmap' using apt?
Answer: A
Answer: B
Q 114. Which package manager is used in Red Hat-based systems like CentOS?
A. apt
B. pacman
C. dnf
D. yum
Answer: C
Q 115. How can you remove a package named 'package_name' using apt?
Answer: B
Answer: B
Q 117. What should you do if the 'sudo' command is not working in Linux?
Answer: A
Answer: A
Q 119. Which command is used to install a new package on a Debian-based system using apt?
Answer: B
Answer: B
Q 121. How can you remove a package named 'example_package' using apt?
Answer: B
Q 122. Which command is used to upgrade all installed packages to their latest versions using apt?
A. apt update
B. apt upgrade
C. apt dist-upgrade
D. apt install
Answer: C
Answer: A
Q 124. Which package manager is commonly used in Red Hat-based systems like CentOS?
A. yum
B. dnf
C. apt
D. pacman
Answer: B
Q 125. How do you search for packages containing the term 'network' using apt?
Answer: B
C. Super User DO
Answer: C
Answer: B
Q 128. Which command is used to create a hard link to a file in a Linux file system?
A. link
B. ln
C. mklink
D. create
Answer: B
Q 129. What is the maximum file size limit for the ext4 file system on a typical Linux distribution?
A. 2 GB
B. 4 GB
C. 16 TB
D. 1 PB
Answer: C
Q 130. In the context of file systems, what does the acronym "UUID" stand for?
Answer: A
Q 131. When using the 'cd' command, what is the purpose of the double hyphen (cd --)?
Answer: C
Q 132. What is the key difference between "soft links" and "hard links" in Linux file systems?
A. Soft links store the actual file data, while hard links store references to file data
C. Soft links always have the same inode as the target file
Answer: A
Q 133. In the 'df' command output, what does the "Use%" column represent?
Answer: D
Q 134. When using the 'du' command to calculate disk usage, what option is used to display sizes
in human-readable format (e.g. MB, GB)?
A. -s
B. -h
C. -t
D. -r
Answer: B
Answer: A
Q 136. What is the maximum number of primary partitions allowed on a disk using the Master
Boot Record (MBR) partitioning scheme?
A. 2
B. 4
C. 6
D. 8
Answer: B
Q 137. In the context of file systems, what is the primary role of the "superblock"?
Answer: D
Q 138. When using the 'touch' command to create a new file, what does the '-a' option do?
Answer: A
Answer: C
Q 140. Which file system is commonly used in USB flash drives and memory cards due to its
compatibility with both Linux and Windows?
A. ext4
B. NTFS
C. FAT32
D. HFS+
Answer: C
Q 141. In Linux file systems, what is the main function of the "dentry" cache?
Answer: C
Q 142. When using the 'find' command to search for files, what does the -maxdepth option
specify?
Answer: B
Answer: A
Q 144. In the context of file systems, what does the term "journaling" refer to?
Answer: B
Q 145. In the 'ls' command, what does the '-i' option display for each file or directory?
A. Inode number
B. Owner's username
C. File size
D. File permissions
Answer: A
Q 146. When mounting a file system in Linux, what does the 'bind' option do?
Answer: C
C. System logs
Answer: B
Answer: C
Q 149. What does the 'blkid' command display when used in a Linux terminal?
D. System logs
Answer: A
Q 150. In the context of disk partitions, what does "LVM" stand for?
Answer: A
Q 151. When configuring a swap file, what is the recommended size for the swap file, relative to
physical RAM?
Answer: A
Answer: B
Q 153. In the context of disk partitions, what is the role of a "primary partition"?
A. To store user data
Answer: C
Q 154. What is the purpose of the 'noatime' option in Linux file systems?
Answer: A
Q 155. What does the 'quota' command in Linux allow administrators to do?
Answer: C
Q 156. In the context of file systems, what does the term "chattr" refer to?
Answer: A
Q 157. In the context of file systems, what is the primary function of the "quota" system?
Answer: C
D. To format a disk
Answer: A
Q 159. When using the 'file' command in Linux, what does it determine about a file?
Answer: C
Q 160. What is the maximum number of extended partitions that can be created on a disk using
the MBR partitioning scheme?
A. 1
B. 2
C. 3
Answer: D
Q 161. In Linux, what does the 'cmp' command do when used to compare files?
Answer: C
Q 162. What does the 'ncdu' command in Linux allow users to do?
Answer: D
Answer: B
A. A primary partition
Answer: D
Q 165. When using the 'xfs_growfs' command in Linux, what does it allow you to do?
Answer: B
Answer: C
Q 167. In the context of file systems, what does the "ACL" acronym stand for?
Answer: A
Q 168. What does the 'findmnt' command display when used in a Linux terminal?
D. System logs
Answer: A
Answer: A
Answer: A
Answer: D
Q 173. When using the 'md5sum' command in Linux, what does it calculate for a file?
Answer: B
Q 174. In the context of file systems, what is the purpose of a "quota file"?
Answer: D
Q 175. What does the 'journalctl' command in Linux allow users to do?
A. Manage file permissions
Answer: B
Answer: B
Q 177. In the context of file systems, what does the "fuser" command do when used with the '-m'
option?
Answer: B
Answer: D
Q 179. In the context of file systems, what does the term "Btrfs" refer to?
Answer: C
Q 180. What does the 'attr' command in Linux allow users to do?
Answer: C
Q 181. When using the 'fsck' command in Linux, what does it do to a file system?
Answer: C
Q 182. In the context of file systems, what does "VFS" stand for?
Answer: A
Answer: C
Q 184. In the context of file systems, what does the term "ext3" refer to?
D. Execution time 3
Answer: A
Q 185. What does the 'sync' command do when used with the '--file-system' option?
Answer: C
B. List open files and the processes that have them open
Answer: B
Q 187. In Linux, what file type is typically associated with executable programs or scripts?
A. Regular file
B. Directory
C. Symbolic link
Answer: A
Q 188. Which command can be used to search for files and directories by name in a Linux system?
A. find
B. locate
C. search
D. list
Answer: A
C. To remove files
Answer: B
Q 190. When using the 'rm' command in Linux, what option is used to remove directories and their
contents recursively?
A. -r
B. -d
C. -f
D. -x
Answer: A
Answer: C
Q 192. What does the 'cat' command do in Linux when used without any options or arguments?
Answer: D
Q 193. Which command is commonly used for viewing the contents of a file page by page and
allows navigation with arrow keys or other controls?
A. cat
B. less
C. more
D. head
Answer: B
Q 194. What is the primary purpose of the 'head' command in Linux when used with the '-n'
option (e.g. , head -n 10)?
Answer: B
Q 195. In Linux, what is the primary function of the 'tail' command when used with the '-f' option
(e.g. , tail -f file)?
Answer: B
Q 196. In the context of file permissions, what does the 'chmod' command do in Linux?
Answer: B
Q 198. In the context of file permissions, what does the 'chgrp' command do in Linux?
Answer: B
Q 199. In Linux, which command is used to change the ownership of a file or directory?
A. chperm
B. chown
C. chmod
D. chgrp
Answer: B
B. Remove a file
Answer: C
Q 201. Which Linux command is used to change file permissions for a file or directory?
A. chmod
B. chown
C. chgrp
D. chperm
Answer: A
A. Rename a file
Answer: C
Answer: A
A. Rename a directory
C. Remove a directory
Answer: C
Answer: B
Answer: B
Answer: D
Q 209. Which Linux command is used to display the last part of a file or stream in real time?
A. cat
B. less
C. more
D. tail
Answer: D
Answer: D
Q 211. In Linux, which command is used to display the first part of a file?
A. tail
B. more
C. head
D. less
Answer: C
Answer: D
Q 213. Which command is used to view the contents of a file in Linux and is especially useful for
large files?
A. cat
B. more
C. head
D. less
Answer: D
Q 214. In Linux, what does the command 'chmod 755 file.txt' do to 'file.txt'?
A. Sets the file as executable by the owner, and readable and executable by others
Answer: A
Answer: A
Answer: A
D. Readable and executable by the owner, others can read and execute
Answer: C
Q 218. What does the 'ls -l' command in Linux display for files and directories?
Answer: C
Q 221. What is the primary function of the 'cp' command when used with the '-r' option?
C. Remove files
Answer: A
Q 222. In Linux, what does the 'mv' command do when moving a file within the same directory?
Answer: B
Q 223. What does the 'find' command in Linux do when used with the '-name' option?
Answer: A
Q 224. In Linux, what does the 'rm -r' command do when removing a directory?
Answer: A
Q 225. What does the 'locate' command do in Linux when used with the '-i' option?
A. Case-insensitive search for files and directories
Answer: A
Q 226. In Linux, what is the main role of the 'passwd' command when used without arguments?
Answer: A
Answer: D
Q 228. In Linux, what does the 'cp -i' command do when copying files?
B. Rename files
Answer: A
Q 229. What is the primary function of the 'cat' command when used with the '-n' option?
Answer: A
Q 230. What does the 'less' command in Linux allow users to do with file content?
D. Rename files
Answer: A
Q 231. In Linux, what does the 'more' command do when displaying file content?
Answer: B
Q 232. What does the 'head' command do in Linux when used with the '-n' option?
Answer: A
Q 233. In Linux, what does the 'tail -f' command do when used to view log files?
Answer: C
Q 234. In Linux, what does the 'chmod 644 file.txt' command do to 'file.txt'?
A. Sets the file as readable and writable by the owner, readable by others
Answer: A
Q 235. In Linux, what is the primary function of the 'chown' command when used with the '-R'
option?
Answer: A
Q 236. What does the 'ls' command display when used with the '-a' option in Linux?
Answer: A
Q 237. In Linux, what does the 'chgrp' command do when changing group ownership for a file or
directory?
Answer: C
Q 238. What is the primary purpose of the 'ls -R' command in Linux?
Answer: A
Answer: C
Q 240. What is the default behavior of the 'echo' command in Linux when used without options?
Answer: C
Q 241. In Linux, what does the 'cat' command do when used without any arguments?
A. Concatenate and display the content of all files in the current directory
Answer: A
Q 242. What does the 'cat' command do in Linux when used with the '-n' option?
Answer: C
Answer: B
Q 245. In Linux, what is the primary use of the 'echo' command with the '-e' option?
Answer: C
Q 246. What does the 'echo' command do when used with the '-n' option in Linux?
Answer: C
Q 247. In Linux, what is the purpose of using double quotes (") with the 'echo' command?
A. To suppress the output
Answer: B
Q 248. How can you use the 'echo' command to append text to an existing file in Linux?
C. echo "text"
D. file.txt
Answer: A
Q 249. What is the primary purpose of the 'echo' command with the '-E' option in Linux?
Answer: D
Q 250. What does the 'echo' command do when used with the '-E' option and a backslash ('')
followed by a character, such as '\n'?
Answer: A
Q 251. In Linux, how can you use the 'echo' command to display the value of an environment
variable, such as 'HOME'?
A. echo $HOME
B. echo "HOME"
C. echo (HOME)
D. echo &HOME
Answer: A
Q 252. What is the effect of using the 'echo' command with the '-E' option and '\c' as an argument
in Linux?
Answer: B
Q 253. What does the 'echo' command do when used with the '-s' option in Linux?
Answer: C
Q 254. How can you use the 'echo' command to display the result of an arithmetic operation in
Linux?
A. echo $(expr 5 + 3)
B. echo 5 + 3
D. echo $[5 + 3]
Answer: A
Q 255. What is the primary purpose of the 'cat' command when used with the '-s' option in Linux?
Q 256. In Linux, what does the 'cat' command do when used with the '-v' option?
Answer: C
Q 257. What is the purpose of the 'cat' command when used with the '-T' option in Linux?
Answer: A
Q 258. In Linux, how can you use the 'cat' command to concatenate the content of multiple files
into a new file?
C. combined.txt
Answer: A
Q 259. What is the effect of using the 'cat' command with the '-E' option in Linux?
Answer: C
Q 260. What does the 'cat' command do when used with the '-n' option in Linux?
Answer: A
Q 261. In Linux, how can you use the 'cat' command to create a new file with specific content?
B. cat -o newfile.txt
C. cat -c newfile.txt
Answer: A
Q 262. What is the primary purpose of the 'cat' command when used with the '-u' option in Linux?
Answer: D
Q 263. What does the 'cat' command do when used with the '-A' option in Linux?
Answer: C
Q 264. In Linux, how can you use the 'cat' command to display the content of a file with line
numbers?
A. cat -n file.txt
B. cat "file.txt -n"
D. cat file.txt
Answer: A
Q 265. In Linux, what is the primary purpose of the 'sudo -l' command?
Answer: A
Q 266. How does the 'sudo' command in Linux verify a user's identity when running commands
with superuser privileges?
Answer: D
Q 267. In Linux, what is the effect of running a command with 'sudo' when a user is not part of the
'sudo' group?
Answer: B
Q 268. What is the primary role of the 'sudo -k' command in Linux?
Answer: C
MIX
a. /
b. /home
c. /bin
d. /mnt
Answer: a
2. Which directory in a Linux file system contains system configuration files and device
drivers?
a. /home
b. /etc
c. /usr
d. /opt
Answer: b
a. rd
b. cw
c. cd
d. Chdir
Answer: c
a. dir
b. ls
c. list
d. Cd
Answer: ls
5. Which command is used to display the current working directory in a terminal?
a. wd
b. pwd
c. currentdir
d. Printdir
Answer: b
Answer: c
7. Which command is used to view the current partition table on a Linux system?
a. fdisk
b. ls
c. top
d. Partedit
Answer: a
Answer: a
9. What is the primary advantage of using Logical Volume Management (LVM) in Linux
partitioning?
a. It simplifies the installation process.
Answer: b
Answer: c
11. Which Linux distribution is known for its use in supercomputing clusters and server
environments?
a. Ubuntu
b. Fedora
c. CentOS
d. Arch Linux
Answer: c
Answer: c
13. Which shell is the default command-line interface in most Linux distributions?
a. Bash
b. PowerShell
c. Zsh
d. CMD
Answer:a
14. Which protocol is commonly used for remote shell access in Linux?
a. FTP
b. SSH
c. HTTP
d. Telnet
Answer: b
15. What is the name of the Linux kernel's memory management system?
a. Paging
b. Swapping
c. Segmentation
d. Virtual memory
Answer: a
16. Which command is used to display information about available memory and swap space
in Linux?
a. df
b. du
c. fdisk
d. Top
Answer: a
17. What happens when RAM is full and swap space is also exhausted in a Linux system?
18. What file is commonly used to configure and enable swap space in Linux?
a. /etc/memory.conf
b. /etc/swap.conf
c. /etc/fstab
d. /etc/swapfile
Answer: c
a. mkfs
b. dd
c. swapon
d. fallocate
Answer:d
20. What is the recommended size for a swap partition or file in Linux?
c. 1 GB
Answer: a
1. Which command is used to append the output of a command to an existing file in Linux?
a. >>
b. <
c. |
d. &
Answer: a
b. chown
c. chgrp
d. Perm
Answer: a
3. What is the command to change the permission of a file to read, write, and execute for the
a. chmod 750
b. chmod 755
c. chmod 644
d. chmod 777
Answer: b
4. In a file permission string like "rwxr-xr--," what does the "r" represent?
a. Read permission
b. Write permission
c. Execute permission
d. User ownership
Answer:a
5. Which octal value corresponds to full read, write, and execute permissions for the owner,
read and execute for the group, and no permissions for others?
a. 755
b. 644
c. 777
d. 664
Answer: a
6. Which permission mode in Linux grants full control over a file or directory to the owner,
b. 700
c. 666
d. 777
Answer: d
a. owner
b. changeowner
c. chown
d. Own
Answer: c
8. In Linux, what is the command used to change the group ownership of a file or directory?
a. group
b. changegroup
c. chgrp
d. Grp
Answer: c
Answer: a
10. Which command is used to change the group ownership of a file to "newgroup" in Linux?
Answer: a
11. You have a file named "image.jpg." You want to check its type without using the "file"
a. showtype image.jpg
b. ls -l image.jpg
c. cat image.jpg
d. filetype image.jpg
Answer: d
12. You need to identify the type of a directory named "docs" in your Linux system. Which
a. file docs
b. cat docs
c. ls -l docs
d. showtype docs
Answer: a
13. You want to create a new file called "notes.txt" in your home directory. Which command
a. touch notes.txt
b. cp notes.txt
c. mkdir notes.txt
d. mv notes.txt
Answer: a
14. You want to remove a directory and its contents, including subdirectories, in Linux. Which
a. rmdir
b. rm -r
c. mv
d. cp -r
Answer: b
15. You need to grant read and write permissions to the owner and the group for a file
named "document.doc" without affecting others' permissions. Which command should you
use?
Answer:a
1. Which of the following command is used to count the total number of lines, words,
a. wc
b. count
c. countwc
Answer: a
a. Bash
b. Shell
c. Kernal
d. Compiler
Answer: c
a. CentOS
b. BSD
c. Red hat
d. Ubuntu
Answer: b
a. /etc/password
b. /root/password
c. /root/users
d. /etc/user
Answer: a
a. /etc
b. /etc/dev
c. /etc/bin
d. /dev
Answer: d
a. Increase
b. Decrease
c. Maintains
Answer: a
a. Allows
b. Doesn’t allow
c. May allow
Answer: a
8. The command used for renaming the files is_____
a. rename
b. mv
c. cp
d. move
Answer: b
9. Which option of rmdir command will remove all directories a, b, c if path is a/b/c
a. –b
b. –o
c. –p
d. –t
Answer: c
a) grep
b) wc
c) count
d) cut
Answer: b
11 . Which of the following Linux distributions is known for its use in enterprise
environments?
a. Ubuntu
b. Fedora
c. CentOS
d. Arch Linux
Answer: c
12. Which file system is commonly used in Linux for the root partition?
a. NTFS
b. ext4
c. FAT32
d. HFS+
Answer: b
13. During the Linux installation process, what is the purpose of the bootloader?
Answer: c
14. Which partition type is typically used for virtual memory (swap) in Linux installations?
a. Primary partition
b. Extended partition
c. Logical partition
d. Swap partition
Answer: d
15. In a dual-boot installation, what is the process of selecting which operating system to
a. Partitioning
b. Bootloader
c. Grub
d. Boot menu
Answer: d
a. Linus Torvalds
b. Richard Stallman
c. Steve Jobs
d. Bill Gates
Answer: a
17. In what year was the Linux kernel first released by Linus Torvalds?
a. 1991
b. 1984
c. 2000
d. 1978
Answer: a
18. Which open-source project served as an inspiration for Linus Torvalds when creating
Linux?
a. GNU Project
b. Microsoft Windows
c. Apple macOS
d. Android OS
Answer: a
19. What programming language was primarily used to develop the Linux kernel?
a. C++
b. Java
c. Python
d. C
Answer: d
a. Linux OS
b. GNU Kernel
c. Freax
d. Unix Lite
Answer: c
1. You want to remove all permissions for the group on a file named "file.txt" without affecting
a. chmod g= file.txt
Answer: b
2. You want to change the owner and group ownership of a file named "data.csv" to
Answer: a
3. You want to change the group ownership of a directory named "shared" to "projectteam"
without affecting the owner or others. What command should you use?
Answer: a
4. You want to determine the type of a shell script named "myscript.sh." What command
a. file myscript.sh
b. showtype myscript.sh
c. cat myscript.sh
d. filetype myscript.sh
Answer: a
5. You have a file named "data.csv" that you suspect might be a compressed archive. What
a. file data.csv
b. unzip data.csv
c. tar data.csv
d. showtype data.csv
Answer: a
6. You have a directory named "images" with several subdirectories and files, and you want
to remove it along with its contents. Which command should you use?
a. rmdir images
b. rm -r images
c. mv images
d. cp -r images
Answer: b
7. You need to create an empty file named "todo.txt" in your current directory. What
a. touch todo.txt
b. cp todo.txt
c. mkdir todo.txt
d. echo todo.txt
Answer: a
8. You want to grant execute permission to everyone (owner, group, and others) for a file
b. chmod +x script.sh
c. chmod o+x script.sh
Answer: a
9. You need to change the owner of a file named "config.conf" to "adminuser." What
Answer: a
10. You have a directory named "docs" that should be owned by a user named "documenter"
and a group named "documentation." What command should you use to set both owner and
group ownership?
Answer: a
11. You need to identify the type of a file in your Linux system. Which command should
you use?
a. ls
b. file
c. cat
d. Mv
Answer: b
12. You want to check the file type of a particular file named "document.pdf." Which
b. file document.pdf
c. ls -l document.pdf
d. showtype document.pdf
Answer: b
13. You want to create a new directory called "photos" in your home directory. Which
a. mkdir photos
b. touch photos
c. cp photos
d. rmdir photos
Answer: a
14. You have a file named "report.txt," and you want to make a copy of it in the same
directory with the name "backup.txt." What command should you use?
a. cp report.txt backup.txt
b. mv report.txt backup.txt
Answer: a
15. You want to change the permissions of a file so that the owner can read, write, and
execute, the group can read and execute, and others have no permissions. Which
Answer: a
1. What is an absolute path in a file system?
Answer: a
Answer: c
a. newfile
b. createfile
c. touch
d. Addfile
Answer: c
a. move
b. mv
c. copy
d. Cp
Answer: d
a. makedir
b. mkdir
c. createdir
d. Newdir
Answer: b
Answer: a
a. ext4
b. NTFS
c. Btrfs
d. XFS
Answer: b
Answer: b
9. When installing Linux on a UEFI system, which partition is required to store the UEFI
firmware's bootloader?
a. /boot
b. /boot/efi
c. /var
d. /swap
Answer: b
10. What command can you use to install software packages on a Debian-based Linux
a. rpm
b. dpkg
c. yum
d. pacman
Answer: b
11. Which tool is used to automate software configuration and deployment in Linux
environments?
a. Puppet
b. Dropbox
c. Google Drive
d. Adobe Photoshop
Answer: a
12. What is the name of the command used to search and install software packages in a
a. apt-get
b. yum
c. rpm
d. Dnf
Answer: a
13. Which Linux feature allows a user to run a program as though they were another user,
a. sudo
b. su
c. chroot
d. Chmod
Answer: b
14. Which file stores user account information, including the hashed passwords, in Linux?
a. /etc/password
b. /etc/passwd
c. /etc/shadow
d. /var/users
Answer: c
Answer: a
16. To activate a new swap file in Linux, which command should be run?
a. activate
b. addswap
c. swapon
d. swapactivate
Answer: c
17. In a typical Linux boot process, which component is responsible for initializing the
a. Kernel
b. BIOS/UEFI
c. GRUB
d. init
Answer: b
18. What is the purpose of the extended partition in a disk partitioning scheme?
Answer: c
19. When the Linux kernel decides to move a portion of data from RAM to swap space, this
operation is called:
a. Paging
b. Swapping
c. Fragmentation
d. Segmentation
Answer: b
20. Which command is used to permanently enable a swap file in Linux by adding an entry
a. swapon
b. fallocate
c. mkfs
d. fstab
Answer: d
Answer: c
2. Which directory in a Linux file system is used to store user-specific configuration files and
data?
a. /lib
b. /tmp
c. /var
d. /home
Answer: d
Answer: c
Answer: a
5. Which command is used to navigate to the user's home directory in a Linux terminal?
a. cd /
b. cd ~
c. cd /home
d. cd ../..
Answer: b
6. What is the relative path to the directory "docs" from the directory "images"?
a. ../docs
b. ./docs
c. images/docs
d. ../../docs
Answer:a
Answer: a
8. Which command is used to create a copy of a directory and its contents in Linux?
a. copydir
b. clonedir
c. cp -r
d. Mv
Answer: c
9. To move a file from one location to another and rename it, which command is used?
a. move
b. rename
c. mv
d. Cp
Answer: c
Answer: c
Answer:a
12. Which file system is commonly used in Linux for the root partition?
a. NTFS
b. ext4
c. FAT32
d. HFS+
Answer: b
Answer: a
14. Linux follows a monolithic kernel architecture. What does this mean?
b. The kernel is tightly integrated with device drivers and system services.
Answer: b
15. In the Linux kernel architecture, which layer is responsible for managing hardware
a. Shell
b. Init
d. Kernel Space
Answer: d
1. What is the first program that runs when a computer is turned on?
a. BIOS/UEFI
b. GRUB
c. Kernel
d. init
Answer: a
Answer:b
d. Disk partitioning
Answer:b
a. RAM
b. ROM
c. Hard drive
d. CPU cache
Answer: a
Answer: a
6. In a dual-boot setup, which term refers to the process of running two different operating
a. Partitioning
b. Virtualization
c. Dual booting
d. Multi-threading
Answer: c
a. UEFI systems
c. Virtual machines
d. Embedded systems
Answer: b
8. When setting up a dual boot with Windows and Linux, which operating system should be
installed first?
a. Linux
b. Windows
c. The order doesn't matter
Answer: b
Answer: c
Answer: c
11. Which installation method allows you to run Linux alongside your existing operating
a. Dual-boot
b. Live CD
c. Wubi
d. Full installation
Answer: b
12. What is the purpose of a Live CD or Live USB when installing Linux?
13. Which of the following Linux distributions is known for its user-friendly installation
a. Debian
b. Gentoo
c. Linux Mint
d. Slackware
Answer: c
14. What is the name of the package manager commonly used to install software in Red
a. dpkg
b. APT
c. RPM
d. YUM
Answer: c
15. What tool is used for managing and configuring hardware devices in Linux installations?
a. System Preferences
b. Device Manager
c. Control Center
d. Lspci
Answer: d
a. FAT32
b. NTFS
c. Ext4
d. HFS+
Answer: Ext4
17. Linux is known for its multi-user capabilities. What is the name of the concept that allows
a. Multi-core processing
b. Time-sharing
c. Single-user mode
d. Cooperative multitasking
Answer: b
a. GNOME
b. Windows Aero
c. macOS Finder
d. KDE
Answer: a
19. Which package manager is commonly used for software installation and management in
a. RPM
b. YUM
c. APT
d. Brew
Answer: c
20. What is the primary advantage of using Linux over other operating systems?
c. User-friendly interface
Answer: b
1. What command is used to display the type of a file in Linux?
a. file
b. showtype
c. filetype
d. Fileinfo
Answer: a
a. F
b. D
c. P
d. E
Answer: d
3. Which command is used to search for files and directories in a Linux system?
a. search
b. find
c. locate
d. Query
Answer: b
a. passwd
b. password
c. setpassword
d. Changepw
Answer: a
a. mv
b. cp
c. rm
d. Mkdir
Answer: b
a. copy
b. cp
c. rm
d. Move
Answer: c
a. cp
b. rm
c. mv
d. Rename
Answer: c
a. mkd
b. dir
c. mkdir
d. Newdir
Answer: c
a. rmdir
b. rmd
c. rm -r
d. Del
Answer: a
10. Which command is used to display the entire content of a file in Linux?
a. cat
b. less
c. more
d. Head
Answer: a
11. What command is used to display the last few lines of a file in Linux?
a. cat
b. less
c. more
d. Tail
Answer: d
12. In Linux, what is the symbol used for output redirection (sending command output to a
file)?
a. >
b. |
c. <
d. &
Answer: a
a. chmod
b. chown
c. chgrp
d. Perm
Answer: a
14. Which command is used to change the owner of a file or directory in Linux?
a. owner
b. changeowner
c. chown
d. Own
Answer: c
15. In Linux, what is the command used to change the group ownership of a file or directory?
a. group
b. changegroup
c. chgrp
d. Grp
Answer: c
1.“who” command prints information about user/users who are/were______?
a. currently logged in
b. logged in before system shutdown
c. logged out before system shutdown
d. all the users that exist in the system
Answer: 1
Question 2:
CentOS is a part of which Linux family?
a. Red Hat Family
b. Debian Family
c. Fedora Family
d. None of the above
Answer:A
Question 3:
What is the POST test performed by the bios?
a) Power Off Self Test
b) Power Operated System Test
c) Power On Sync Test
d) Power On Self Test
Answer:Power On Self Test
Question 4:
Is the BIOS dependent on the OS?
A. No
B. Yes
Answer:No
Question 5:
Which test does the BIOS perform?
a) System integrity test
b) System directory test
c) System enhancement test
d) None of the above
Answer: System integrity test
Question 6:
What is the full form of RHEL?
a) Red Hat Environment Linux
b) Red Hat Enterprise Linux
c) Red Hat Enterprise Limited
d) None of the above
Answer:b
Question 7:
Upon modifying a “file” with “chmod 000 /file” command, who all can read and write?
a. User who created the file
b. Group(user) – Users of the same group as the owner of the file
c. Others – All other users which are not the creator or part of the group(user)
d. None of the above
Answer:e
Question 8:
What UID and PID does the SYSTEMD/SYSTEM V/init Process typically hold?
a) UID = 1 and PID = 0
b) UID = 1 and PID = 1
c) UID = 0 and PID = 0
d) UID = 0 and PID = 1
Answer:UID = 0 and PID = 1
Question 9:
Up to how many primary partitions can be supported by a GPT?
a) 128
b) 16
c) 64
d) 4
Answer:128
Question 10:
Up to how many number of primary partitions can be supported by a MBR?
a) 4
b) 128
c) 64
d) 8
Answer: 4
Question 11:
FSF stands for __________
a) File server first
b) /tmp
c) Free software Foundation
d) /mnt
e) None of the above
Answer: 3
Question 12:
Which of the following Linux flavor is from canonical?
a) BSD
b) Manjaro
c) Ubuntu
d) RHE
Answer:Ubuntu
Question 13:
Which of the following statement is FALSE?
a) Linux supports multiple users
b) Linux is an open source operating system and the source code is shared
c) Shell perform process based operations with communication of process
d) Shell provides the feature of I/O Redirection
Answer:
Shell perform process based operations with communication of process
Question 14:
Which of these is not a Linux Flavor?
a) FreeBSD
b) CentOs
c) PopOs
d) Suse
Answer:FreeBSD
Question1 5:
Select the most appropriate option for GRUB in Linux?
a) stands for Linux boot loader
b) is a Multiboot boot loader.
c) GRand Unified Bootloader
d) b and c
e) None of the above
Answer:B and c
Question 16:
Which of the following tool is used to partition your hard drive?
a) mkfs
b) fdisk
c) fsck
d) mount
e) None of the above
Answer:fdisk
Question17:
CentOS developed & supported by
a) Sun Microsystems
b) AT&T
c) Red Hat
d) Sun and AT&T jointly
Answer:Red Hat
Question 18:
What command is used to halt a Linux system?
a) init 01
b) Shutdow –t
c) Shutdown - -y0
d) Ctrl+Alt+Del
e) poweroff
Answer:poweroff
Question 19:
Which of the following file allows the user to change the GUI with networking?
a) graphics.target
b) graphic.target
c) graphical.target
d) multi.target
e) None of the above
Answer:graphical.target
Question 20:
What command can be used to get information about yourself?
a. which
b. pwd
c. i/4
d. who am i
e. None of the above
Answer: 5