Certified Network Defender (CND) — Question 155
Which command list all ports available on a server?
Answer options
- A. sudo apt nst -tunIp
- B. sudo netstat -tunIp
- C. sudo apt netstate -Is tunIp
- D. sudo ntstat -Is tunIp
Correct answer: B
Explanation
The correct answer is B, as 'sudo netstat -tunIp' accurately lists all open ports along with their respective details. The other options contain typos or incorrect command syntax, making them invalid for displaying port information.