1. What is Linux? 6.
Which command is used to list files
A) A type of hardware in a directory?
B) An operating system A) ls
C) A web browser B) list
D) A software application C) show
2. Who is the creator of Linux? D) files
A) Bill Gates 7. What does the command "pwd"
B) Linus Torvalds stand for?
C) Steve Jobs A) Print Working Directory
D) Mark Zuckerberg B) Present Working Directory
3. What is the main advantage of using C) Path Working Directory
Linux? D) Print Default Directory
A) It is free and open-source 8. What does the file system hierarchy
B) It is expensive in Linux start from?
C) It can only run on specific A) /home
hardware B) /usr
D) It is only for advanced users C) /
4. Which of the following is a popular D) /bin
Linux distribution? 9. In Linux, what is a package?
A) Windows A) A type of application
B) Android B) A software bundle with code,
C) Ubuntu libraries, and documentation
D) macOS C) A hardware component
5. What is the kernel in Linux? D) An operating system
A) The graphical interface 10. Which command is used to change
B) The core component that the current directory?
manages system resources A) change
C) A type of software application B) cd
D) The hardware of the computer C) movedir
D) directory
11. Which command is used to create a A) .txt
new directory? B) .sh
A) mkdir C) .doc
B) newdir D) .exe
C) createdir 17. Which command is used to move
D) dircreate files in Linux?
12. How do you remove a file in Linux? A) mv
A) delete [Link] B) move
B) rm [Link] C) mvfile
C) remove [Link] D) transfer
D) del [Link] 18. What does the "chmod" command
13. What does the command "cp" do? do?
A) Copies files and directories A) Changes the ownership of files
B) Create a new directory B) Changes file permissions
C) Deletes files C) Changes file names
D) Moves files D) Completes file tasks
14. What command can be used to view 19. What is the purpose of the root user
the contents of a text file? in Linux?
A) cat A) A standard user with limited
B) show permissions
C) view B) The administrator with full control
D) read over the system
15. Which of the following is the proper C) A user who creates files
way to view the manual for a D) A user that cannot modify system
command in Linux? files
A) help command 20. Which directory contains system
B) command --help configuration files?
C) man command A) /usr
D) info command B) /etc
16. What file extension is commonly C) /home
associated with shell scripts? D) /bin
21. Which command is used to check the 26. In which directory would you find
current system time? user home directories?
A) time A) /usr
B) date B) /home
C) clock C) /root
D) current_time D) /var
22. What is the purpose of the "ping" 27. Which network command shows the
command? IP configuration of a Linux
A) To check hardware performance machine?
B) To test network connectivity A) ifconfig
C) To check system performance B) ipconfig
D) To diagnose memory issues C) netconfig
23. Which command is used to install D) config
software packages in Debian-based 28. What is the purpose of the
systems like Ubuntu? "shutdown" command?
A) install A) To restart the system
B) apt-get install B) To log out the current user
C) package install C) To turn off the system
D) software install D) To change power settings
24. What command shows the current 29. Which command displays running
users logged into the system? processes in Linux?
A) userlist A) ps
B) who B) processes
C) users C) run
D) loggedin D) tasklist
25. Which command is used to display 30. What does VPN stand for?
disk usage in Linux? A) Virtual Private Network
A) dusage B) Virtual Public Network
B) du C) Virtual Protected Network
C) df D) Virtual Private Node
D) diskinfo
31. Which command is used to display 35. Which command can be used to
the network interfaces in a Linux display the current routing table?
system?
A) route
A) ifconfig
B) ip route
B) netstat
C) netstat -r
C) ipconfig
D) All of the above
D) ping
36. What is the purpose of the
32. What file is commonly edited to /etc/hosts file?
configure static IP addresses in o A) To store the routing
Linux? information
o B) To translate hostnames to
A) /etc/services IP addresses
o C) To manage user
B) /etc/[Link] permissions
o D) To configure the firewall
C) /etc/network/interfaces 37. Which command is used to assign a
new IP address to a network
D) /etc/hosts interface?
33. Which command is used to test A) ifconfig
connectivity to another host on the
network? B) setip
A) telnet C) ip assign
B) ftp D) route
C) traceroute 38. What does DHCP stand for?
D) ping A) Dynamic Host Control
Protocol
34. What is the primary utility for
managing firewall rules in Linux? B) Dynamic Host Configuration
Protocol
A) iptables
C) Direct Host Configuration
B) ufw Protocol
C) firewalld D) Dynamic Hypertext Control
Protocol
D) All of the above
39. Which file is used to configure the A) To display network statistics
DNS resolver in Linux?
B) To test DNS resolution
A) /etc/[Link]
C) To show the path data takes to
B) /etc/[Link] reach a host
C) /etc/[Link] D) To manage routing tables
D) /etc/netconfig 44. In Linux, what does the command ip
a display?
40. Which command would you use to
view active network connections? A) Current users
A) ifconfig B) Disk usage statistics
B) netstat C) Network interface
configurations
C) lsnet
D) System uptime
D) ping
45. Which of the following commands
41. What is the default port for SSH? displays the current hostname?
o A) hostname
A) 22
B) uname
B) 23
C) hoststat
C) 80
D) systeminfo
D) 443
46. What does the ping command use to
42. Which command is used to enable or check connectivity?
disable a network interface?
A) TCP
A) netenable
B) UDP
B) ifup/ifdown
C) ICMP
C) ipset
D) HTTP
D) networkctl
47. Which network configuration file
43. What is the purpose of the would you edit to change the DNS
traceroute command? servers in a Debian-based Linux
system?
A) /etc/[Link] D) netstat -s
B) /etc/network/interfaces 51. Which command lets you see the
listening ports on your Linux
C) /etc/sysconfig/network- system?
scripts/ifcfg-eth0
A) ss -l
D) /etc/[Link]
B) netstat -l
48. What is the maximum transmission
unit (MTU)? C) lsof -i
A) The maximum data packet D) All of the above
size that can be sent over a
network 52. To restart the network manager on a
modern Linux system, which
B) The amount of data that can command is used?
be stored on a server
A) /etc/init.d/network restart
C) The number of devices
connected to a network B) systemctl restart
NetworkManager
D) The speed of network
connections C) service network restart
49. Which protocol is primarily used for D) netmanager restart
sending email?
53. Which of the following is a
A) FTP lightweight tool for managing
firewalls in Linux?
B) HTTP
A) iptables
C) SMTP
B) ufw
D) DHCP
C) firewalld
50. To view the status of the network
service in a systemd-based system, D) All of the above
which command would you use?
54. What command would you use to
A) service network status change the hostname temporarily?
B) systemctl status network A) hostnamectl
C) status network B) hostname
C) sethostname 58. Which of the following commands
shows the process details for a
D) changehostname specific port?
55. Which command is used to find the A) netstat -tuln
default gateway in a Linux system?
B) ss -tuln
A) ip route show
C) lsof -i :<port_number>
B) netstat -g
D) All of the above
C) route -n
59. What's the role of the network
D) both A and C configuration file
/etc/sysconfig/network-
56. What does the command curl do? scripts/ifcfg-eth0 on a Red Hat-
based system?
A) It checks network
connections. A) To define network services
B) It retrieves data from or sends B) To configure network devices
data to a URL.
C) To set the routing table
C) It configures network
interfaces. D) To manage firewall settings
D) It measures bandwidth. 60. Which command can be used to
show the IP address information on a
57. In Linux networking, what does Linux system?
NAT stand for?
A) ipconfig
A) Network Address Translation
B) ip -c
B) Network Address Transfer
C) ifconfig
C) Network Access Technology
D) hostname -I
D) None of the above