CompTIA CASP+ (CAS-004) — Question 26

A security analyst is reviewing network connectivity on a Linux workstation and examining the active TCP connections using the command line.
Which of the following commands would be the BEST to run to view only active Internet connections?

Answer options

Correct answer: E

Explanation

The correct answer is E because it specifically filters the output of netstat to show only TCP connections, which are active Internet connections. Option A focuses on listening ports, while B shows established connections but may not include all active TCP connections. Option C excludes 'Foreign Address', which is essential for identifying active Internet connections, and D does not specifically filter for TCP.