{"id":26,"date":"2022-11-28T10:56:07","date_gmt":"2022-11-28T10:56:07","guid":{"rendered":"https:\/\/exampracticetests.com\/c\/CAS-004\/comptia-casp-cas-004-question018\/"},"modified":"2022-11-28T10:56:07","modified_gmt":"2022-11-28T10:56:07","slug":"comptia-casp-cas-004-question018","status":"publish","type":"post","link":"https:\/\/exampracticetests.com\/c\/CAS-004\/comptia-casp-cas-004-question018\/","title":{"rendered":"CompTIA CASP+ CAS-004 &#8211; Question018"},"content":{"rendered":"<div class=\"question\">A security analyst is reviewing network connectivity on a Linux workstation and examining the active TCP connections using the command line.<br \/>\nWhich of the following commands would be the BEST to run to view only active Internet connections?<br \/><strong><br \/>A.<\/strong> sudo netstat -antu | grep &quot;LISTEN&quot; | awk `{print$5}&#039;<br \/><strong>B.<\/strong> sudo netstat -nlt -p | grep &quot;ESTABLISHED&quot;<br \/><strong>C.<\/strong> sudo netstat -plntu | grep -v &quot;Foreign Address&quot;<br \/><strong>D.<\/strong> sudo netstat -pnut -w | column -t -s $&#039;w&#039;<br \/><strong>E.<\/strong> sudo netstat -pnut | grep -P ^tcp<\/div>\n<p><\/p>\n<style> .hidden-div{ display:none } <\/style>\n<p>\t\t\t\t\t\t\t<button onclick=\"getElementById('hidden-div').style.display = 'block'\"> Show Answer <\/button> <button onclick=\"getElementById('hidden-div').style.display = 'none'\">Hide Answer<\/button><\/p>\n<div class=\"hidden-div\" id=\"hidden-div\"><span style=\"\"><\/p>\n<div class=\"answer\">Correct Answer: <strong>B<\/strong><\/div>\n<p><strong>Explanation:<\/strong> <\/p>\n<div class=\"explanation\">\nReference: <a href=\"https:\/\/www.codegrepper.com\/code-examples\/shell\/netstat+find+port\" title=\"External link\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/www.codegrepper.com\/code-examples\/shell\/netstat+find+port<\/a><br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full\" src=\"https:\/\/exampracticetests.com\/c\/CAS-004\/wp-content\/uploads\/exam\/0018-0000.jpg\" \/><\/div>\n<p><\/strong><\/span> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>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?A. sudo netstat -antu | grep &quot;LISTEN&quot; | awk `{print$5}&#039;B. sudo netstat -nlt -p | grep &quot;ESTABLISHED&quot;C. sudo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[3,21],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry","category-comptia-casp-cas-004","tag-comptia-casp-cas-004","tag-question-018"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/exampracticetests.com\/c\/CAS-004\/wp-json\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exampracticetests.com\/c\/CAS-004\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/exampracticetests.com\/c\/CAS-004\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/exampracticetests.com\/c\/CAS-004\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exampracticetests.com\/c\/CAS-004\/wp-json\/wp\/v2\/comments?post=26"}],"version-history":[{"count":0,"href":"https:\/\/exampracticetests.com\/c\/CAS-004\/wp-json\/wp\/v2\/posts\/26\/revisions"}],"wp:attachment":[{"href":"https:\/\/exampracticetests.com\/c\/CAS-004\/wp-json\/wp\/v2\/media?parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exampracticetests.com\/c\/CAS-004\/wp-json\/wp\/v2\/categories?post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exampracticetests.com\/c\/CAS-004\/wp-json\/wp\/v2\/tags?post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}