UNIX MCQs – System Monitoring (Part – 2)

UNIX Question and Answer – System Monitoring

UNIX MCQ – Multiple Choice Questions for exam, interview, and Entrance Test

1. What does the “netstat” command display in UNIX?

a) Disk usage statistics

b) Network interface statistics

c) System log files

d) CPU usage statistics

Answer: b) Network interface statistics

Explanation: The “netstat” command displays network interface statistics, including active network connections, routing tables, and interface configuration.


2. Which option of the “netstat” command is used to display listening ports?

a) -a

b) -l

c) -t

d) -p

Answer: b) -l

Explanation: The “netstat” command with the “-l” option is used to display listening ports.


3. What does the “iptraf” command do in UNIX?

a) Monitor CPU usage

b) Monitor disk I/O statistics

c) Monitor network traffic

d) Monitor memory usage

Answer: c) Monitor network traffic

Explanation: The “iptraf” command is used to monitor network traffic in real-time, providing information about network interfaces, connections, and traffic statistics.


4. Which option of the “iptraf” command is used to display statistics for a specific network interface?

a) -i

b) -n

c) -s

d) -t

Answer: a) -i

Explanation: The “iptraf” command with the “-i” option is used to display statistics for a specific network interface.


5. What does the “iftop” command do in UNIX?

a) Monitor CPU usage

b) Monitor disk I/O statistics

c) Monitor network traffic

d) Monitor memory usage

Answer: c) Monitor network traffic

Explanation: The “iftop” command is used to monitor network traffic in real-time, providing information about active connections and bandwidth usage.


6. Which option of the “iftop” command is used to display information about a specific network interface?

a) -i

b) -n

c) -r

d) -t

Answer: a) -i

Explanation: The “iftop” command with the “-i” option is used to display information about a specific network interface.


7. What does the “netwatch” command do in UNIX?

a) Monitor CPU usage

b) Monitor disk I/O statistics

c) Monitor network traffic

d) Monitor memory usage

Answer: c) Monitor network traffic

Explanation: The “netwatch” command is used to monitor network traffic in real-time, providing insights into active connections and traffic patterns.


8. Which option of the “netwatch” command is used to display information about network interfaces?

a) -i

b) -n

c) -w

d) -t

Answer: a) -i

Explanation: The “netwatch” command with the “-i” option is used to display information about network interfaces.


9. What does the “vnstat” command do in UNIX?

a) Monitor CPU usage

b) Monitor disk I/O statistics

c) Monitor network traffic

d) Monitor memory usage

Answer: c) Monitor network traffic

Explanation: The “vnstat” command is used to monitor network traffic and bandwidth usage over time, providing statistics on data transfer rates and total data usage.


10. Which option of the “vnstat” command is used to display statistics for a specific network interface?

a) -i

b) -n

c) -s

d) -t

Answer: a) -i

Explanation: The “vnstat” command with the “-i” option is used to display statistics for a specific network interface.


11. What does the “nload” command do in UNIX?

a) Monitor CPU usage

b) Monitor disk I/O statistics

c) Monitor network traffic

d) Monitor memory usage

Answer: c) Monitor network traffic

Explanation: The “nload” command is used to monitor network traffic in real-time, providing information about incoming and outgoing traffic rates.


12. Which option of the “nload” command is used to specify the network interface to monitor?

a) -i

b) -n

c) -s

d) -t

Answer: a) -i

Explanation: The “nload” command with the “-i” option is used to specify the network interface to monitor.


13. What does the “ntop” command do in UNIX?

a) Monitor CPU usage

b) Monitor disk I/O statistics

c) Monitor network traffic

d) Monitor memory usage

Answer: c) Monitor network traffic

Explanation: The “ntop” command is used to monitor network traffic in real-time, providing insights into network usage and traffic patterns.


14. Which option of the “ntop” command is used to specify the network interface to monitor?

a) -i

b) -n

c) -s

d) -t

Answer: a) -i

Explanation: The “ntop” command with the “-i” option is used to specify the network interface to monitor.


15. What does the “bmon” command do in UNIX?

a) Monitor CPU usage

b) Monitor disk I/O statistics

c) Monitor network traffic

d) Monitor memory usage

Answer: c) Monitor network traffic

Explanation: The “bmon” command is used to monitor network traffic in real-time, providing information about incoming and outgoing traffic rates.


16. Which option of the “bmon” command is used to specify the network interface to monitor?

a) -i

b) -n

c) -s

d) -t

Answer: a) -i

Explanation: The “bmon” command with the “-i” option is used to specify the network interface to monitor.


17. What does the “vnstat” command do in UNIX?

a) Monitor CPU usage

b) Monitor disk I/O statistics

c) Monitor network traffic

d) Monitor memory usage

Answer: c) Monitor network traffic

Explanation: The “vnstat” command is used to monitor network traffic and bandwidth usage over time, providing statistics on data transfer rates and total data usage.


18. Which option of the “vnstat” command is used to display statistics for a specific network interface?

a) -i

b) -n

c) -s

d) -t

Answer: a) -i

Explanation: The “vnstat” command with the “-i” option is used to display statistics for a specific network interface.


19. What does the “tcptrack” command do in UNIX?

a) Monitor CPU usage

b) Monitor disk I/O statistics

c) Monitor network traffic

d) Monitor memory usage

Answer: c) Monitor network traffic

Explanation: The “tcptrack” command is used to monitor TCP connections in real-time, providing information about active connections and traffic rates.


20. Which option of the “tcptrack” command is used to filter connections based on a specific port number?

a) -p

b) -n

c) -t

d) -f

Answer: a) -p

Explanation: The “tcptrack” command with the “-p” option is used to filter connections based on a specific port number.


21. What does the “tcptraceroute” command do in UNIX?

a) Monitor CPU usage

b) Monitor disk I/O statistics

c) Monitor network traffic

d) Perform traceroute using TCP packets

Answer: d) Perform traceroute using TCP packets

Explanation: The “tcptraceroute” command is used to perform a traceroute using TCP packets instead of ICMP, which can bypass firewalls and filters.


22. Which option of the “tcptraceroute” command is used to specify the destination port number?

a) -p

b) -n

c) -t

d) -f

Answer: a) -p

Explanation: The “tcptraceroute” command with the “-p” option is used to specify the destination port number.


23. What does the “darkstat” command do in UNIX?

a) Monitor CPU usage

b) Monitor disk I/O statistics

c) Monitor network traffic

d) Monitor memory usage

Answer: c) Monitor network traffic

Explanation: The “darkstat” command is used to monitor network traffic in real-time and generate usage statistics, including bandwidth usage and top talkers.


24. Which option of the “darkstat” command is used to specify the network interface to monitor?

a) -i

b) -n

c) -s

d) -t

Answer: a) -i

Explanation: The “darkstat” command with the “-i” option is used to specify the network interface to monitor.


25. What does the “bwm-ng” command do in UNIX?

a) Monitor CPU usage

b) Monitor disk I/O statistics

c) Monitor network traffic

d) Monitor memory usage

Answer: c) Monitor network traffic

Explanation: The “bwm-ng” command is used to monitor network traffic in real-time, providing information about incoming and outgoing traffic rates.


26. Which option of the “bwm-ng” command is used to specify the network interface to monitor?

a) -i

b) -n

c) -s

d) -t

Answer: a) -i

Explanation: The “bwm-ng” command with the “-i” option is used to specify the network interface to monitor.


27. What does the “slurm” command do in UNIX?

a) Monitor CPU usage

b) Monitor disk I/O statistics

c) Monitor network traffic

d) Monitor memory usage

Answer: c) Monitor network traffic

Explanation: The “slurm” command is used to monitor network traffic in real-time, providing insights into network usage and traffic patterns.


28. Which option of the “slurm” command is used to specify the network interface to monitor?

a) -i

b) -n

c) -s

d) -t

Answer: a) -i

Explanation: The “slurm” command with the “-i” option is used to specify the network interface to monitor.


29. What does the “nethogs” command do in UNIX?

a) Monitor CPU usage

b) Monitor disk I/O statistics

c) Monitor network traffic

d) Monitor memory usage

Answer: c) Monitor network traffic

Explanation: The “nethogs” command is used to monitor network traffic per process in real-time, providing insights into bandwidth usage by individual applications.


30. Which option of the “nethogs” command is used to specify the network interface to monitor?

a) -i

b) -n

c) -s

d) -t

Answer: a) -i

Explanation: The “nethogs” command with the “-i” option is used to specify the network interface to monitor.


31. What does the “ip” command do in UNIX?

a) Display system logs

b) Monitor network interfaces

c) Monitor CPU usage

d) Monitor disk I/O statistics

Answer: b) Monitor network interfaces

Explanation: The “ip” command is used to display and manipulate network interfaces, routing, and policy routing.


32. Which option of the “ip” command is used to display information about all network interfaces?

a) show

b) list

c) display

d) iface

Answer: b) list

Explanation: The “ip” command with the “list” option is used to display information about all network interfaces.


33. What does the “ss” command do in UNIX?

a) Monitor CPU usage

b) Monitor network sockets

c) Monitor disk I/O statistics

d) Monitor system activity

Answer: b) Monitor network sockets

Explanation: The “ss” command is used to display information about network sockets, including listening ports, established connections, and network protocols.


34. Which option of the “ss” command is used to display listening TCP sockets?

a) -t

b) -l

c) -p

d) -n

Answer: b) -l

Explanation: The “ss” command with the “-l” option is used to display listening TCP sockets.


35. What does the “lsof” command do in UNIX?

a) Monitor CPU usage

b) Monitor network sockets

c) List open files and processes

d) Monitor system activity

Answer: c) List open files and processes

Explanation: The “lsof” command is used to list open files, sockets, and processes on a UNIX system.


36. Which option of the “lsof” command is used to display open files associated with a specific user?

a) -u

b) -p

c) -i

d) -t

Answer: a) -u

Explanation: The “lsof” command with the “-u” option is used to display open files associated with a specific user.


37. What does the “fuser” command do in UNIX?

a) Monitor CPU usage

b) Monitor network sockets

c) Identify processes using a file or directory

d) Monitor system activity

Answer: c) Identify processes using a file or directory

Explanation: The “fuser” command is used to identify processes using a file or directory.


38. Which option of the “fuser” command is used to display the PID of processes using a file?

a) -u

b) -v

c) -m

d) -c

Answer: b) -v

Explanation: The “fuser” command with the “-v” option is used to display the PID of processes using a file.


39. What does the “netcat” command do in UNIX?

a) Monitor CPU usage

b) Monitor network sockets

c) Establish network connections

d) Monitor system activity

Answer: c) Establish network connections

Explanation: The “netcat” command is used to establish network connections, either as a client or a server.


40. Which option of the “netcat” command is used to listen for incoming connections?

a) -l

b) -n

c) -c

d) -p

Answer: a) -l

Explanation: The “netcat” command with the “-l” option is used to listen for incoming connections.


41. What does the “ifconfig” command do in UNIX?

a) Monitor CPU usage

b) Monitor network interfaces

c) Monitor disk I/O statistics

d) Monitor system activity

Answer: b) Monitor network interfaces

Explanation: The “ifconfig” command is used to configure and display information about network interfaces.


42. Which option of the “ifconfig” command is used to display information about all network interfaces?

a) -a

b) -l

c) -n

d) -i

Answer: a) -a

Explanation: The “ifconfig” command with the “-a” option is used to display information about all network interfaces.


43. What does the “netstat” command do in UNIX?

a) Monitor CPU usage

b) Monitor network sockets

c) Monitor disk I/O statistics

d) Monitor system activity

Answer: b) Monitor network sockets

Explanation: The “netstat” command is used to display network-related information, including active sockets, routing tables, and interface statistics.


44. Which option of the “netstat” command is used to display routing table information?

a) -r

b) -s

c) -n

d) -i

Answer: a) -r

Explanation: The “netstat” command with the “-r” option is used to display routing table information.


45. What does the “tcpdump” command do in UNIX?

a) Monitor CPU usage

b) Monitor network traffic

c) Monitor disk I/O statistics

d) Monitor system activity

Answer: b) Monitor network traffic

Explanation: The “tcpdump” command is used to capture and analyze network traffic in real-time.


46. Which option of the “tcpdump” command is used to capture packets on a specific network interface?

a) -i

b) -n

c) -r

d) -w

Answer: a) -i

Explanation: The “tcpdump” command with the “-i” option is used to capture packets on a specific network interface.


47. What does the “iftop” command do in UNIX?

a) Monitor CPU usage

b) Monitor network traffic

c) Monitor disk I/O statistics

d) Monitor system activity

Answer: b) Monitor network traffic

Explanation: The “iftop” command is used to display bandwidth usage on an interface in real-time.


48. Which option of the “iftop” command is used to specify the network interface to monitor?

a) -i

b) -n

c) -t

d) -p

Answer: a) -i

Explanation: The “iftop” command with the “-i” option is used to specify the network interface to monitor.


49. What does the “vnstat” command do in UNIX?

a) Monitor CPU usage

b) Monitor network traffic

c) Monitor disk I/O statistics

d) Monitor system activity

Answer: b) Monitor network traffic

Explanation: The “vnstat” command is used to monitor network traffic and bandwidth usage.


50. Which option of the “vnstat” command is used to display statistics for a specific network interface?

a) -i

b) -n

c) -s

d) -t

Answer: a) -i

Explanation: The “vnstat” command with the “-i” option is used to display statistics for a specific network interface.

Related Articles

Linux MCQ

Welcome to Linux Multiple Choice Questions (MCQ) Section Embark on a journey through the world of...