{"id":19727,"date":"2023-04-14T01:50:03","date_gmt":"2023-04-14T01:50:03","guid":{"rendered":"https:\/\/green.cloud\/docs\/docs\/greencloud-documents\/linux-operating-systems\/how-to-use-20-netstat-commands-for-linux-network-management\/"},"modified":"2026-01-19T00:45:45","modified_gmt":"2026-01-19T00:45:45","slug":"how-to-use-20-netstat-commands-for-linux-network-management-19727","status":"publish","type":"docs","link":"https:\/\/green.cloud\/docs\/how-to-use-20-netstat-commands-for-linux-network-management\/","title":{"rendered":"How to use 20 Netstat commands for Linux Network Management"},"content":{"rendered":"<ul>\n<li>netstat is a useful tool for checking your network configuration and activity. It is in fact a collection of several tools lumped together<\/li>\n<li>netstat tool is very important and much useful for Linux network administrators as well as system administrators to monitor and troubleshoot their network-related problems and determine network traffic performance.<\/li>\n<li>netstat is one of the most basic network service debugging tools, telling you what ports are open and whether any programs are listening on ports.<br \/>\nThis article shows usages of netstat command with their examples which may be useful in daily operation.<\/li>\n<\/ul>\n<p><iframe title=\"How to use 20 Netstat commands for Linux Network Management | VPS Tutorial\" width=\"1170\" height=\"658\" src=\"https:\/\/www.youtube.com\/embed\/bGHCc2d2zTU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/p>\n<h4>1. Listing all the LISTENING Ports of TCP and UDP Connections<\/h4>\n<p>Listing all ports (both\u00a0<strong>TCP<\/strong>\u00a0and\u00a0<strong>UDP<\/strong>) using option: <strong>netstat -a<\/strong><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-19769 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt1-1-1024x431.png\" alt=\"\" width=\"1024\" height=\"431\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt1-1-1024x431.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt1-1-300x126.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt1-1-768x324.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt1-1-20x8.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt1-1.png 1206w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h4>2. Listing TCP Ports connections<\/h4>\n<p>Listing only\u00a0<strong>TCP<\/strong>\u00a0(<strong>Transmission Control Protocol<\/strong>) port connections using: <strong>netstat -at<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-19767 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt2-1-1024x137.png\" alt=\"\" width=\"1024\" height=\"137\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt2-1-1024x137.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt2-1-300x40.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt2-1-768x103.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt2-1-20x3.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt2-1.png 1207w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h4>3. Listing UDP Ports connections<\/h4>\n<p>Listing only\u00a0<strong>UDP<\/strong>\u00a0(<strong>User Datagram Protocol\u00a0<\/strong>) port connections using: <strong>netstat -au<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-19765 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT3-1024x70.png\" alt=\"\" width=\"1024\" height=\"70\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT3-1024x70.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT3-300x20.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT3-768x52.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT3-20x1.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT3.png 1205w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h4>4. Listing all LISTENING Connections<\/h4>\n<p>Listing all active listening ports connections with: <strong>netstat -l<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19763 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt4-1024x328.png\" alt=\"\" width=\"1024\" height=\"328\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt4-1024x328.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt4-300x96.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt4-768x246.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt4-20x6.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt4.png 1205w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h4>5. Listing all TCP Listening Ports<\/h4>\n<p>Listing all active listening TCP ports by using option: <strong>netstat -lt<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19761 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt5-1024x116.png\" alt=\"\" width=\"1024\" height=\"116\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt5-1024x116.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt5-300x34.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt5-768x87.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt5-20x2.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt5.png 1207w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h4>6. Listing all UDP Listening Ports<\/h4>\n<p>Listing all active listening UDP ports by using option: <strong>netstat -lu<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19759 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT6-1024x70.png\" alt=\"\" width=\"1024\" height=\"70\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT6-1024x70.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT6-300x21.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT6-768x53.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT6-20x1.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT6.png 1207w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h4>7. Listing all UNIX Listening Ports<\/h4>\n<div class=\"__fs-branding\">Listing all active UNIX listening ports using: <strong>netstat -lx<\/strong><\/div>\n<div><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19757 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT7-1024x214.png\" alt=\"\" width=\"1024\" height=\"214\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT7-1024x214.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT7-300x63.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT7-768x160.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT7-20x4.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT7.png 1206w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/div>\n<h4>\u00a08. Showing Statistics by Protocol<\/h4>\n<p>Displays statistics by protocol. By default, statistics are shown for the TCP, UDP, ICMP, and IP protocols. The\u00a0<strong>-s<\/strong> parameter can be used to specify a set of protocols<\/p>\n<pre><strong>netstat -s<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19755 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT8-1024x706.png\" alt=\"\" width=\"1024\" height=\"706\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT8-1024x706.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT8-300x207.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT8-768x529.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT8-20x14.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT8.png 1207w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h4>9. Showing Statistics by TCP Protocol<\/h4>\n<p>Showing statistics of only TCP protocol by using option: n<strong>etstat -st<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19753 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt9-1024x283.png\" alt=\"\" width=\"1024\" height=\"283\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt9-1024x283.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt9-300x83.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt9-768x212.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt9-20x6.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt9.png 1205w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h4>10. Showing Statistics by UDP Protocol<\/h4>\n<pre><strong>netstat -su<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19751 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt10-1024x415.png\" alt=\"\" width=\"1024\" height=\"415\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt10-1024x415.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt10-300x121.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt10-768x311.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt10-20x8.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt10.png 1151w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h4>11. Displaying Service name with PID<\/h4>\n<p>Displaying service name with their\u00a0<strong>PID<\/strong>\u00a0number, using option\u00a0<strong>netstat -tp<\/strong>\u00a0will display \u201c<strong>PID\/Program Name<\/strong>\u201c<\/p>\n<pre><strong>netstat -tp<\/strong><\/pre>\n<p>&nbsp;<\/p>\n<h4><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19749 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT11-1-1024x74.png\" alt=\"\" width=\"1024\" height=\"74\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT11-1-1024x74.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT11-1-300x22.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT11-1-768x56.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT11-1-20x1.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT11-1.png 1156w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/h4>\n<h4>12. Displaying Promiscuous Mode<\/h4>\n<p>Displaying Promiscuous mode with\u00a0<strong>-ac<\/strong>\u00a0switch, netstat print the selected information or refresh screen every five seconds. The default screen refreshes every second<\/p>\n<pre><strong>netstat -ac 5 | grep tcp<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19745 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt12-1024x329.png\" alt=\"\" width=\"1024\" height=\"329\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt12-1024x329.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt12-300x96.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt12-768x247.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt12-20x6.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt12.png 1151w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h4>13. Displaying Kernel IP routing<\/h4>\n<p>Display Kernel IP routing table with netstat and route command<\/p>\n<pre><strong>netstat -r<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19743 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt13-1024x175.png\" alt=\"\" width=\"1024\" height=\"175\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt13-1024x175.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt13-300x51.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt13-768x131.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt13-20x3.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt13.png 1149w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h4>14. Showing Network Interface Transactions<\/h4>\n<p>Showing network interface packet transactions including both transferring and receiving packets with MTU size<\/p>\n<pre><strong>netstat -i<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19741 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT14-1024x118.png\" alt=\"\" width=\"1024\" height=\"118\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT14-1024x118.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT14-300x34.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT14-768x88.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT14-20x2.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT14.png 1097w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h4>15. Showing Kernel Interface Table<\/h4>\n<p>Showing Kernel interface table, similar to\u00a0<strong>ifconfig<\/strong>\u00a0command<\/p>\n<pre><strong>netstat -ie<\/strong><\/pre>\n<h4><\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19739 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT152-1024x378.png\" alt=\"\" width=\"1024\" height=\"378\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT152-1024x378.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT152-300x111.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT152-768x284.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT152-20x7.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT152.png 1096w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h4>16. Displaying IPv4 and IPv6 Information<\/h4>\n<p>Displays multicast group membership information for both IPv4 and IPv6<\/p>\n<pre><strong>netstat -g<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19771 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt16-1024x199.png\" alt=\"\" width=\"1024\" height=\"199\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt16-1024x199.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt16-300x58.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt16-768x149.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt16-20x4.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt16.png 1197w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h4>17. Print Netstat Information Continuously<\/h4>\n<p>To get netstat information every few seconds, then use the following command, it will print netstat information continuously, say every few seconds.<\/p>\n<pre><strong>netstat -c<\/strong><\/pre>\n<p>&nbsp;<\/p>\n<h4><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19783 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT171-1024x437.png\" alt=\"\" width=\"1024\" height=\"437\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT171-1024x437.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT171-300x128.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT171-768x328.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT171-20x9.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT171.png 1214w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/h4>\n<h4>18. Finding non-supportive Address<\/h4>\n<p>Finding un-configured address families with some useful information<\/p>\n<pre><strong>netstat --verbose<\/strong><\/pre>\n<p>&nbsp;<\/p>\n<h4><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19785 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT182-1024x101.png\" alt=\"\" width=\"1024\" height=\"101\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT182-1024x101.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT182-300x29.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT182-768x75.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT182-20x2.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT182.png 1385w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/h4>\n<h4>19. Finding Listening Programs<\/h4>\n<p>Find out how many listening programs running on a port<\/p>\n<pre><strong>netstat -ap | grep http<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19777 \" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT19.png\" alt=\"\" width=\"972\" height=\"53\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT19.png 899w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT19-300x16.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT19-768x42.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT19-20x1.png 20w\" sizes=\"(max-width: 972px) 100vw, 972px\" \/><\/p>\n<h4>20. Displaying RAW Network Statistics<\/h4>\n<pre><strong>netstat --statistics --raw<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-19733 size-large\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT20-1024x561.png\" alt=\"\" width=\"1024\" height=\"561\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT20-1024x561.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT20-300x164.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT20-768x421.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT20-20x11.png 20w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/NT20.png 1286w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>That\u2019s it, If you are looking for more information and options about the\u00a0<strong>netstat<\/strong>\u00a0command, refer to netstat manual docs or use the\u00a0<strong>man netstat<\/strong>\u00a0command to know all the information.<\/p>\n<p>If we\u2019ve missed anything in the list, please inform us using our comment section below. So, we could keep updating this list based on your comments.<\/p>\n<p><a href=\"https:\/\/greencloudvps.com\/billing\/aff.php?aff=2871\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-18943 size-full\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/03\/KVM-VPS_banner_2.png\" alt=\"\" width=\"1280\" height=\"214\" srcset=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/03\/KVM-VPS_banner_2.png 1280w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/03\/KVM-VPS_banner_2-300x50.png 300w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/03\/KVM-VPS_banner_2-1024x171.png 1024w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/03\/KVM-VPS_banner_2-768x128.png 768w, https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/03\/KVM-VPS_banner_2-20x3.png 20w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>netstat is a useful tool for checking your network configuration and activity. It is in fact a collection of several tools lumped together netstat tool is very important and much useful for Linux network administrators as well as system administrators to monitor and troubleshoot their network-related problems and determine network traffic performance. netstat is one [&hellip;]<\/p>\n","protected":false},"author":19,"featured_media":0,"parent":17817,"menu_order":340,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-19727","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to use 20 Netstat commands for Linux Network Management - GreenCloud Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/green.cloud\/docs\/how-to-use-20-netstat-commands-for-linux-network-management\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use 20 Netstat commands for Linux Network Management - GreenCloud Documentation\" \/>\n<meta property=\"og:description\" content=\"netstat is a useful tool for checking your network configuration and activity. It is in fact a collection of several tools lumped together netstat tool is very important and much useful for Linux network administrators as well as system administrators to monitor and troubleshoot their network-related problems and determine network traffic performance. netstat is one [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/green.cloud\/docs\/how-to-use-20-netstat-commands-for-linux-network-management\/\" \/>\n<meta property=\"og:site_name\" content=\"GreenCloud Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-19T00:45:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt1-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1206\" \/>\n\t<meta property=\"og:image:height\" content=\"508\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-use-20-netstat-commands-for-linux-network-management\\\/\",\"url\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-use-20-netstat-commands-for-linux-network-management\\\/\",\"name\":\"How to use 20 Netstat commands for Linux Network Management - GreenCloud Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-use-20-netstat-commands-for-linux-network-management\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-use-20-netstat-commands-for-linux-network-management\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/green.cloud\\\/docs\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/Nt1-1-1024x431.png\",\"datePublished\":\"2023-04-14T01:50:03+00:00\",\"dateModified\":\"2026-01-19T00:45:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-use-20-netstat-commands-for-linux-network-management\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-use-20-netstat-commands-for-linux-network-management\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-use-20-netstat-commands-for-linux-network-management\\\/#primaryimage\",\"url\":\"https:\\\/\\\/green.cloud\\\/docs\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/Nt1-1.png\",\"contentUrl\":\"https:\\\/\\\/green.cloud\\\/docs\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/Nt1-1.png\",\"width\":1206,\"height\":508},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-use-20-netstat-commands-for-linux-network-management\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/green.cloud\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GreenCloud Documents\",\"item\":\"https:\\\/\\\/green.cloud\\\/docs\\\/docs\\\/greencloud-documents\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Linux Operating Systems\",\"item\":\"https:\\\/\\\/green.cloud\\\/docs\\\/linux-operating-systems\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How to use 20 Netstat commands for Linux Network Management\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/#website\",\"url\":\"https:\\\/\\\/green.cloud\\\/docs\\\/\",\"name\":\"GreenCloud Documentation\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/green.cloud\\\/docs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to use 20 Netstat commands for Linux Network Management - GreenCloud Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/green.cloud\/docs\/how-to-use-20-netstat-commands-for-linux-network-management\/","og_locale":"en_US","og_type":"article","og_title":"How to use 20 Netstat commands for Linux Network Management - GreenCloud Documentation","og_description":"netstat is a useful tool for checking your network configuration and activity. It is in fact a collection of several tools lumped together netstat tool is very important and much useful for Linux network administrators as well as system administrators to monitor and troubleshoot their network-related problems and determine network traffic performance. netstat is one [&hellip;]","og_url":"https:\/\/green.cloud\/docs\/how-to-use-20-netstat-commands-for-linux-network-management\/","og_site_name":"GreenCloud Documentation","article_modified_time":"2026-01-19T00:45:45+00:00","og_image":[{"width":1206,"height":508,"url":"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt1-1.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/green.cloud\/docs\/how-to-use-20-netstat-commands-for-linux-network-management\/","url":"https:\/\/green.cloud\/docs\/how-to-use-20-netstat-commands-for-linux-network-management\/","name":"How to use 20 Netstat commands for Linux Network Management - GreenCloud Documentation","isPartOf":{"@id":"https:\/\/green.cloud\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/green.cloud\/docs\/how-to-use-20-netstat-commands-for-linux-network-management\/#primaryimage"},"image":{"@id":"https:\/\/green.cloud\/docs\/how-to-use-20-netstat-commands-for-linux-network-management\/#primaryimage"},"thumbnailUrl":"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt1-1-1024x431.png","datePublished":"2023-04-14T01:50:03+00:00","dateModified":"2026-01-19T00:45:45+00:00","breadcrumb":{"@id":"https:\/\/green.cloud\/docs\/how-to-use-20-netstat-commands-for-linux-network-management\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/green.cloud\/docs\/how-to-use-20-netstat-commands-for-linux-network-management\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/green.cloud\/docs\/how-to-use-20-netstat-commands-for-linux-network-management\/#primaryimage","url":"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt1-1.png","contentUrl":"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2023\/04\/Nt1-1.png","width":1206,"height":508},{"@type":"BreadcrumbList","@id":"https:\/\/green.cloud\/docs\/how-to-use-20-netstat-commands-for-linux-network-management\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/green.cloud\/docs\/"},{"@type":"ListItem","position":2,"name":"GreenCloud Documents","item":"https:\/\/green.cloud\/docs\/docs\/greencloud-documents\/"},{"@type":"ListItem","position":3,"name":"Linux Operating Systems","item":"https:\/\/green.cloud\/docs\/linux-operating-systems\/"},{"@type":"ListItem","position":4,"name":"How to use 20 Netstat commands for Linux Network Management"}]},{"@type":"WebSite","@id":"https:\/\/green.cloud\/docs\/#website","url":"https:\/\/green.cloud\/docs\/","name":"GreenCloud Documentation","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/green.cloud\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/19727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/comments?post=19727"}],"version-history":[{"count":8,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/19727\/revisions"}],"predecessor-version":[{"id":20641,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/19727\/revisions\/20641"}],"up":[{"embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/17817"}],"wp:attachment":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/media?parent=19727"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/doc_tag?post=19727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}