I think B is correct. -a gets a list of available sockets on your system, -n displays numeric addresses and port numbers, -p gets the PID. And ofcourse sudo is required since the user is non root and pipe with grep at the end to limit the result to port 8080
As far as I know, on AIX -p is an option to specify the protocol, but on Linux it is an option to display the process. And of course sudo is mandatory. So I think B is the correct answer.
I opt for A
a regular user has no privileges for netstat thus sudo is required
theoretically TCP and UDP sockets could be bound to 8080 but the question is not clear on that. But from the sudo option, -an -p tcp is a valid syntax o Linux that woul show a PID column. , according to my understanding -anp will list the ports but not the PID
This section is not available anymore. Please use the main Exam Page.CIS-SM Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
KaushikiK
10 months, 1 week agoAbizai
11 months, 1 week agotakagiko
1 year agocarstenschnorr
1 year agoCreel
1 year, 7 months ago