CompTIA Linux+ (XK0-004) — Question 290
A Linux server has multiple IPs. A Linux administrator needs to verify if the HTTP server port is bound to the correct IP.
Which of the following commands would BEST accomplish this task?
Answer options
- A. route
- B. host
- C. nslookup
- D. netstat
- E. ip
Correct answer: D
Explanation
The correct command is netstat, as it provides detailed information about network connections, including which IP addresses and ports are being used by the HTTP server. The other commands, such as route, host, nslookup, and ip, do not offer the same level of detail regarding listening ports and their associated IPs.