UNIX MCQs – System Monitoring (Part – 3)

UNIX Question and Answer – System Monitoring

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

1. What does the “bmon” 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 “bmon” command is used to monitor network traffic in real-time.


2. 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.


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

a) Monitor CPU usage

b) Monitor network traffic

c) Monitor disk I/O statistics

d) Monitor memory usage

Answer: b) Monitor network traffic

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


4. Which option of the “iftop” command is used to filter traffic by IP address?

a) -f

b) -i

c) -n

d) -p

Answer: a) -f

Explanation: The “iftop” command with the “-f” option is used to filter traffic by IP address.


5. What does the “iptraf-ng” command do in UNIX?

a) Monitor CPU usage

b) Monitor network traffic

c) Monitor disk I/O statistics

d) Monitor memory usage

Answer: b) Monitor network traffic

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


6. Which option of the “iptraf-ng” command is used to select the network interface to monitor?

a) -i

b) -n

c) -t

d) -s

Answer: a) -i

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


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

a) Monitor CPU usage

b) Monitor network traffic

c) Monitor disk I/O statistics

d) Monitor memory usage

Answer: b) 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.


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

a) -i

b) -n

c) -t

d) -p

Answer: a) -i

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


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

a) Monitor CPU usage

b) Monitor network traffic

c) Monitor disk I/O statistics

d) Monitor memory usage

Answer: b) Monitor network traffic

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


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

a) -i

b) -n

c) -t

d) -p

Answer: a) -i

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


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

a) Monitor CPU usage

b) Monitor network traffic

c) Monitor disk I/O statistics

d) Monitor memory usage

Answer: b) 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.


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

a) -i

b) -n

c) -t

d) -p

Answer: a) -i

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


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

a) Monitor CPU usage

b) Monitor network traffic

c) Monitor disk I/O statistics

d) Monitor memory usage

Answer: b) Monitor network traffic

Explanation: The “bmon” command is used to monitor network traffic in real-time.


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

a) -i

b) -n

c) -t

d) -p

Answer: a) -i

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


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

a) Monitor CPU usage

b) Monitor network traffic

c) Monitor disk I/O statistics

d) Monitor memory usage

Answer: b) Monitor network traffic

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


16. 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.


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

a) Monitor CPU usage

b) Monitor network traffic

c) Perform traceroute using TCP packets

d) Monitor memory usage

Answer: c) Perform traceroute using TCP packets

Explanation: The “tcptraceroute” command is used to perform a traceroute using TCP packets instead of ICMP.


18. 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.


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

a) Monitor CPU usage

b) Monitor network traffic

c) Test network bandwidth

d) Monitor memory usage

Answer: c) Test network bandwidth

Explanation: The “iperf” command is used to measure network bandwidth by generating TCP and UDP data streams between two hosts.


20. Which option of the “iperf” command is used to specify the port number to listen on?

a) -p

b) -n

c) -t

d) -f

Answer: a) -p

Explanation: The “iperf” command with the “-p” option is used to specify the port number to listen on.


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

a) Monitor CPU usage

b) Monitor network traffic

c) Monitor disk I/O statistics

d) Monitor memory usage

Answer: b) Monitor network traffic

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


22. Which option of the “iptraf” command is used to select the desired monitoring interface?

a) -i

b) -n

c) -s

d) -t

Answer: a) -i

Explanation: The “iptraf” command with the “-i” option is used to select the desired monitoring interface.


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

a) Monitor CPU usage

b) Monitor network traffic

c) Monitor disk I/O statistics

d) Monitor memory usage

Answer: b) Monitor network traffic

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


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

a) -i

b) -n

c) -t

d) -p

Answer: a) -i

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


25. 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.


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

a) -a

b) -l

c) -t

d) -n

Answer: b) -l

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


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

a) Monitor CPU usage

b) Monitor network traffic

c) Monitor disk I/O statistics

d) Monitor memory usage

Answer: b) 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.


28. 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.


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

a) Monitor CPU usage

b) Monitor network traffic

c) Test network bandwidth

d) Monitor memory usage

Answer: c) Test network bandwidth

Explanation: The “iperf” command is used to measure network bandwidth by generating TCP and UDP data streams between two hosts.


30. Which option of the “iperf” command is used to specify the duration of the test?

a) -t

b) -n

c) -p

d) -f

Answer: a) -t

Explanation: The “iperf” command with the “-t” option is used to specify the duration of the test.


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

a) Display system logs

b) Manage network interfaces

c) Monitor CPU usage

d) Monitor disk I/O statistics

Answer: b) Manage network interfaces

Explanation: The “ip” command is used to manage network interfaces, routes, and addresses on a UNIX system.


32. Which option of the “ip” command is used to display information about a specific interface?

a) show

b) display

c) address

d) link

Answer: d) link

Explanation: The “ip” command with the “link” option displays information about a specific interface.


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

a) Display system logs

b) Monitor network sockets

c) Monitor CPU usage

d) Monitor disk I/O statistics

Answer: b) Monitor network sockets

Explanation: The “ss” command is used to display detailed information about network sockets, including TCP and UDP connections.


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

a) -l

b) -a

c) -s

d) -t

Answer: a) -l

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


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

a) Display system logs

b) Monitor network sockets

c) List open files and processes

d) Monitor disk I/O statistics

Answer: c) List open files and processes

Explanation: The “lsof” command lists open files, sockets, and the processes that opened them.


36. Which option of the “lsof” command is used to display information about a specific process?

a) -p

b) -i

c) -c

d) -f

Answer: a) -p

Explanation: The “lsof” command with the “-p” option is used to display information about a specific process.


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

a) Display system logs

b) Monitor network sockets

c) Identify processes using a file or directory

d) Monitor disk I/O statistics

Answer: c) Identify processes using a file or directory

Explanation: The “fuser” command identifies processes using a file, directory, or socket.


38. Which option of the “fuser” command is used to display the user owning the process?

a) -u

b) -p

c) -v

d) -c

Answer: a) -u

Explanation: The “fuser” command with the “-u” option displays the user owning the process.


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

a) Monitor CPU usage

b) Establish network connections

c) Monitor network traffic

d) Monitor memory usage

Answer: b) Establish network connections

Explanation: The “netcat” command is used to create arbitrary network connections.


40. Which option of the “netcat” command is used to specify the source port?

a) -s

b) -p

c) -l

d) -r

Answer: a) -s

Explanation: The “netcat” command with the “-s” option specifies the source port.


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

a) Monitor CPU usage

b) Capture and analyze network traffic

c) Monitor disk I/O statistics

d) Monitor memory usage

Answer: b) Capture and analyze network traffic

Explanation: The “tcpdump” command captures network traffic and displays it in real-time or saves it to a file for later analysis.


42. Which option of the “tcpdump” command is used to specify the number of packets to capture?

a) -c

b) -n

c) -i

d) -w

Answer: a) -c

Explanation: The “tcpdump” command with the “-c” option specifies the number of packets to capture before exiting.


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

a) Monitor CPU usage

b) Analyze network traffic

c) Monitor disk I/O statistics

d) Monitor memory usage

Answer: b) Analyze network traffic

Explanation: The “tshark” command is a network protocol analyzer similar to Wireshark, used to capture and analyze network traffic.


44. Which option of the “tshark” command is used to specify the capture filter?

a) -c

b) -f

c) -i

d) -w

Answer: b) -f

Explanation: The “tshark” command with the “-f” option specifies the capture filter.


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

a) Monitor CPU usage

b) Monitor network traffic

c) Monitor disk I/O statistics

d) Monitor memory usage

Answer: b) Monitor network traffic

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


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

a) -i

b) -n

c) -s

d) -t

Answer: a) -i

Explanation: The “vnstat” command with the “-i” option displays statistics for a specific network interface.


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

a) Monitor CPU usage

b) Monitor network traffic

c) Monitor disk I/O statistics

d) Monitor memory usage

Answer: b) Monitor network traffic

Explanation: The “bwm-ng” command is used to monitor network bandwidth usage in real-time.


48. Which option of the “bwm-ng” command is used to specify the update interval?

a) -u

b) -n

c) -i

d) -t

Answer: a) -u

Explanation: The “bwm-ng” command with the “-u” option specifies the update interval in seconds.


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

a) Monitor CPU usage

b) Monitor network traffic

c) Monitor disk I/O statistics

d) Monitor memory usage

Answer: b) Monitor network traffic

Explanation: The “slurm” command is used to monitor network traffic and bandwidth usage in real-time.


50. 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 specifies the network interface to monitor.

Related Articles

Linux MCQ

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