UNIX Question and Answer – System Information
UNIX MCQ – Multiple Choice Questions for exam, interview, and Entrance Test
1. Which command is used to display information about the system’s uptime and load average in UNIX?
a) loadavg
b) top
c) uptime
d) vmstat
Answer: c) uptime
Explanation: The uptime command displays information about the system’s uptime and load average in UNIX.
2. What does the cat /proc/net/dev command display in UNIX?
a) Network interface configuration
b) System uptime and load average
c) Memory information
d) Disk usage statistics
Answer: a) Network interface configuration
Explanation: The cat /proc/net/dev command displays network interface configuration in UNIX.
3. Which command is used to display information about active network connections and their states in UNIX?
a) netstat -s
b) lsof -i
c) ifconfig
d) route
Answer: a) netstat -s
Explanation: The netstat -s command displays information about active network connections and their states in UNIX.
4. What does the cat /proc/sys/net/ipv4/ip_forward command display in UNIX?
a) System uptime and load average
b) CPU information
c) Network forwarding status
d) Disk usage statistics
Answer: c) Network forwarding status
Explanation: The cat /proc/sys/net/ipv4/ip_forward command displays the network forwarding status in UNIX.
5. Which command is used to display information about the system’s memory and swap space usage in UNIX?
a) meminfo
b) free -m
c) vmstat
d) top
Answer: b) free -m
Explanation: The free -m command displays information about the system’s memory and swap space usage in UNIX.
6. What does the cat /proc/net/tcp command display in UNIX?
a) Detailed TCP/IP stack configuration
b) Network interface configuration
c) Memory information
d) Disk usage statistics
Answer: a) Detailed TCP/IP stack configuration
Explanation: The cat /proc/net/tcp command displays detailed TCP/IP stack configuration in UNIX.
7. Which command is used to display information about active and listening sockets, including their state and port numbers, in UNIX?
a) ss -tuln
b) netstat -a
c) lsof -i
d) arp -a
Answer: a) ss -tuln
Explanation: The ss -tuln command is used to display information about active and listening sockets, including their state and port numbers, in UNIX.
8. What does the cat /proc/net/arp command display in UNIX?
a) ARP cache
b) Network interface configuration
c) Memory information
d) Disk usage statistics
Answer: a) ARP cache
Explanation: The cat /proc/net/arp command displays the ARP cache in UNIX.
9. Which command is used to display information about active TCP connections, including their local and remote addresses, in UNIX?
a) netstat -t
b) lsof -i
c) ifconfig
d) route
Answer: a) netstat -t
Explanation: The netstat -t command is used to display information about active TCP connections in UNIX.
10. What does the cat /proc/net/dev command display in UNIX?
a) Network interface configuration
b) System uptime and load average
c) Memory information
d) Disk usage statistics
Answer: a) Network interface configuration
Explanation: The cat /proc/net/dev command displays network interface configuration in UNIX.
11. Which command is used to display information about active UDP connections, including their local and remote addresses, in UNIX?
a) netstat -u
b) lsof -i
c) ifconfig
d) route
Answer: a) netstat -u
Explanation: The netstat -u command is used to display information about active UDP connections in UNIX.
12. What does the cat /proc/net/snmp command display in UNIX?
a) SNMP statistics
b) Network interface configuration
c) Memory information
d) Disk usage statistics
Answer: a) SNMP statistics
Explanation: The cat /proc/net/snmp command displays SNMP statistics in UNIX.
13. Which command is used to display information about the system’s IP routing table in UNIX?
a) route
b) netstat -r
c) ip route show
d) arp -a
Answer: c) ip route show
Explanation: The ip route show command is used to display information about the system’s IP routing table in UNIX.
14. What does the cat /proc/sys/net/ipv4/tcp_fin_timeout command display in UNIX?
a) System uptime and load average
b) CPU information
c) TCP connection timeout value
d) Disk usage statistics
Answer: c) TCP connection timeout value
Explanation: The cat /proc/sys/net/ipv4/tcp_fin_timeout command displays the TCP connection timeout value in UNIX.
15. Which command is used to display information about the system’s IP address and routing configuration in UNIX?
a) ifconfig
b) route
c) ip address show
d) netstat -r
Answer: c) ip address show
Explanation: The ip address show command is used to display information about the system’s IP address and routing configuration in UNIX.
16. What does the cat /proc/sys/net/ipv4/tcp_syn_retries command display in UNIX?
a) System uptime and load average
b) CPU information
c) Number of TCP SYN retries
d) Disk usage statistics
Answer: c) Number of TCP SYN retries
Explanation: The cat /proc/sys/net/ipv4/tcp_syn_retries command displays the number of TCP SYN retries in UNIX.
17. Which command is used to display information about active network connections and their corresponding processes in UNIX?
a) netstat -p
b) lsof -i
c) ifconfig
d) route
Answer: b) lsof -i
Explanation: The lsof -i command displays information about active network connections and their corresponding processes in UNIX.
18. What does the cat /proc/sys/net/ipv4/ip_forward command display in UNIX?
a) System uptime and load average
b) CPU information
c) Network forwarding status
d) Disk usage statistics
Answer: c) Network forwarding status
Explanation: The cat /proc/sys/net/ipv4/ip_forward command displays the network forwarding status in UNIX.
19. Which command is used to display information about active network connections and their states in UNIX?
a) netstat -s
b) lsof -i
c) ifconfig
d) route
Answer: a) netstat -s
Explanation: The netstat -s command displays information about active network connections and their states in UNIX.
20. What does the cat /proc/sys/net/ipv4/ip_local_port_range command display in UNIX?
a) System uptime and load average
b) CPU information
c) Range of local port numbers
d) Disk usage statistics
Answer: c) Range of local port numbers
Explanation: The cat /proc/sys/net/ipv4/ip_local_port_range command displays the range of local port numbers in UNIX.
21. Which command is used to display information about active and listening sockets, including their state and port numbers, in UNIX?
a) ss -tuln
b) netstat -a
c) lsof -i
d) arp -a
Answer: a) ss -tuln
Explanation: The ss -tuln command is used to display information about active and listening sockets, including their state and port numbers, in UNIX.
22. What does the cat /proc/net/arp command display in UNIX?
a) ARP cache
b) Network interface configuration
c) Memory information
d) Disk usage statistics
Answer: a) ARP cache
Explanation: The cat /proc/net/arp command displays the ARP cache in UNIX.
23. Which command is used to display information about active TCP connections, including their local and remote addresses, in UNIX?
a) netstat -t
b) lsof -i
c) ifconfig
d) route
Answer: a) netstat -t
Explanation: The netstat -t command is used to display information about active TCP connections in UNIX.
24. What does the cat /proc/net/dev command display in UNIX?
a) Network interface configuration
b) System uptime and load average
c) Memory information
d) Disk usage statistics
Answer: a) Network interface configuration
Explanation: The cat /proc/net/dev command displays network interface configuration in UNIX.
25. Which command is used to display information about active UDP connections, including their local and remote addresses, in UNIX?
a) netstat -u
b) lsof -i
c) ifconfig
d) route
Answer: a) netstat -u
Explanation: The netstat -u command is used to display information about active UDP connections in UNIX.
26. Which command is used to display the routing table in UNIX?
a) route
b) netstat -r
c) ip route show
d) arp -a
Answer: c) ip route show
Explanation: The ip route show command is used to display the routing table in UNIX.
27. What does the cat /proc/sys/net/ipv4/tcp_keepalive_time command display in UNIX?
a) System uptime and load average
b) CPU information
c) TCP keepalive time interval
d) Disk usage statistics
Answer: c) TCP keepalive time interval
Explanation: The cat /proc/sys/net/ipv4/tcp_keepalive_time command displays the TCP keepalive time interval in UNIX.
28. Which command is used to display information about active and passive network connections in UNIX?
a) ss -a
b) netstat -a
c) lsof -i
d) arp -a
Answer: b) netstat -a
Explanation: The netstat -a command is used to display information about active and passive network connections in UNIX.
29. What does the cat /proc/sys/net/ipv4/tcp_max_syn_backlog command display in UNIX?
a) System uptime and load average
b) CPU information
c) Maximum number of pending SYN-ACKs
d) Disk usage statistics
Answer: c) Maximum number of pending SYN-ACKs
Explanation: The cat /proc/sys/net/ipv4/tcp_max_syn_backlog command displays the maximum number of pending SYN-ACKs in UNIX.
30. Which command is used to display information about active TCP connections, including their local and remote addresses, in UNIX?
a) netstat -t
b) lsof -i
c) ifconfig
d) route
Answer: a) netstat -t
Explanation: The netstat -t command is used to display information about active TCP connections in UNIX.
31. What does the cat /proc/sys/net/ipv4/tcp_tw_reuse command display in UNIX?
a) System uptime and load average
b) CPU information
c) TCP time-wait reuse status
d) Disk usage statistics
Answer: c) TCP time-wait reuse status
Explanation: The cat /proc/sys/net/ipv4/tcp_tw_reuse command displays the TCP time-wait reuse status in UNIX.
32. Which command is used to display information about active and listening sockets, including their state and port numbers, in UNIX?
a) ss -tuln
b) netstat -a
c) lsof -i
d) arp -a
Answer: a) ss -tuln
Explanation: The ss -tuln command is used to display information about active and listening sockets, including their state and port numbers, in UNIX.
33. What does the cat /proc/net/tcp command display in UNIX?
a) Detailed TCP/IP stack configuration
b) Network interface configuration
c) Memory information
d) Disk usage statistics
Answer: a) Detailed TCP/IP stack configuration
Explanation: The cat /proc/net/tcp command displays detailed TCP/IP stack configuration in UNIX.
34. Which command is used to display information about active UDP connections, including their local and remote addresses, in UNIX?
a) netstat -u
b) lsof -i
c) ifconfig
d) route
Answer: a) netstat -u
Explanation: The netstat -u command is used to display information about active UDP connections in UNIX.
35. What does the cat /proc/sys/net/ipv4/ip_local_port_range command display in UNIX?
a) System uptime and load average
b) CPU information
c) Range of local port numbers
d) Disk usage statistics
Answer: c) Range of local port numbers
Explanation: The cat /proc/sys/net/ipv4/ip_local_port_range command displays the range of local port numbers in UNIX.
36. Which command is used to display information about active network connections and their corresponding processes in UNIX?
a) netstat -p
b) lsof -i
c) ifconfig
d) route
Answer: b) lsof -i
Explanation: The lsof -i command displays information about active network connections and their corresponding processes in UNIX.
37. What does the cat /proc/sys/net/ipv4/ip_forward command display in UNIX?
a) System uptime and load average
b) CPU information
c) Network forwarding status
d) Disk usage statistics
Answer: c) Network forwarding status
Explanation: The cat /proc/sys/net/ipv4/ip_forward command displays the network forwarding status in UNIX.
38. Which command is used to display information about active network connections and their states in UNIX?
a) netstat -s
b) lsof -i
c) ifconfig
d) route
Answer: a) netstat -s
Explanation: The netstat -s command displays information about active network connections and their states in UNIX.
39. What does the cat /proc/sys/net/ipv4/ip_local_port_range command display in UNIX?
a) System uptime and load average
b) CPU information
c) Range of local port numbers
d) Disk usage statistics
Answer: c) Range of local port numbers
Explanation: The cat /proc/sys/net/ipv4/ip_local_port_range command displays the range of local port numbers in UNIX.
40. Which command is used to display information about active and listening sockets, including their state and port numbers, in UNIX?
a) ss -tuln
b) netstat -a
c) lsof -i
d) arp -a
Answer: a) ss -tuln
Explanation: The ss -tuln command is used to display information about active and listening sockets, including their state and port numbers, in UNIX.
41. What does the cat /proc/net/arp command display in UNIX?
a) ARP cache
b) Network interface configuration
c) Memory information
d) Disk usage statistics
Answer: a) ARP cache
Explanation: The cat /proc/net/arp command displays the ARP cache in UNIX.
42. Which command is used to display information about active TCP connections, including their local and remote addresses, in UNIX?
a) netstat -t
b) lsof -i
c) ifconfig
d) route
Answer: a) netstat -t
Explanation: The netstat -t command is used to display information about active TCP connections in UNIX.
43. What does the cat /proc/net/dev command display in UNIX?
a) Network interface configuration
b) System uptime and load average
c) Memory information
d) Disk usage statistics
Answer: a) Network interface configuration
Explanation: The cat /proc/net/dev command displays network interface configuration in UNIX.
44. Which command is used to display information about active UDP connections, including their local and remote addresses, in UNIX?
a) netstat -u
b) lsof -i
c) ifconfig
d) route
Answer: a) netstat -u
Explanation: The netstat -u command is used to display information about active UDP connections in UNIX.
45. What does the cat /proc/net/snmp command display in UNIX?
a) SNMP statistics
b) Network interface configuration
c) Memory information
d) Disk usage statistics
Answer: a) SNMP statistics
Explanation: The cat /proc/net/snmp command displays SNMP statistics in UNIX.
46. Which command is used to display information about the system’s IP routing table in UNIX?
a) route
b) netstat -r
c) ip route show
d) arp -a
Answer: c) ip route show
Explanation: The ip route show command is used to display information about the system’s IP routing table in UNIX.
47. What does the cat /proc/sys/net/ipv4/tcp_fin_timeout command display in UNIX?
a) System uptime and load average
b) CPU information
c) TCP connection timeout value
d) Disk usage statistics
Answer: c) TCP connection timeout value
Explanation: The cat /proc/sys/net/ipv4/tcp_fin_timeout command displays the TCP connection timeout value in UNIX.
48. Which command is used to display information about the system’s IP address and routing configuration in UNIX?
a) ifconfig
b) route
c) ip address show
d) netstat -r
Answer: c) ip address show
Explanation: The ip address show command is used to display information about the system’s IP address and routing configuration in UNIX.
49. What does the cat /proc/sys/net/ipv4/tcp_syn_retries command display in UNIX?
a) System uptime and load average
b) CPU information
c) Number of TCP SYN retries
d) Disk usage statistics
Answer: c) Number of TCP SYN retries
Explanation: The cat /proc/sys/net/ipv4/tcp_syn_retries command displays the number of TCP SYN retries in UNIX.
50. Which command is used to display information about active network connections and their corresponding processes in UNIX?
a) netstat -p
b) lsof -i
c) ifconfig
d) route
Answer: b) lsof -i
Explanation: The lsof -i command displays information about active network connections and their corresponding processes in UNIX.