<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>nethogs Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/nethogs/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 16 Jul 2021 16:25:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Monitoring your network with Nethogs on Ubuntu 20.04</title>
		<link>https://www.osradar.com/install-nethogs-ubuntu/</link>
					<comments>https://www.osradar.com/install-nethogs-ubuntu/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 21 Jul 2021 08:20:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[nethogs]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=31263</guid>

					<description><![CDATA[<p>Hello friends. Monitoring the network can be a very useful thing to do and can find problems. Besides that, it is always good to keep track of network usage. Therefore, we will show you how to install and use Nethogs on Ubuntu 20.04. This simple tool allows you to track network usage. In the Github [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nethogs-ubuntu/">Monitoring your network with Nethogs on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-line-data">Hello friends. Monitoring the network can be a very useful thing to do and can find problems. Besides that, it is always good to keep track of network usage. Therefore, we will show you how to install and use Nethogs on Ubuntu 20.04. This simple tool allows you to track network usage.</p>



<p class="has-line-data">In the <a href="https://github.com/raboof/nethogs">Github profile</a> of this tool, we find the following definition</p>



<blockquote class="wp-block-quote"><p class="has-line-data" data-line-start="4" data-line-end="5">NetHogs is a small ‘net top’ tool. Instead of breaking the traffic down per protocol or per subnet, like most tools do, it groups bandwidth by process.</p></blockquote>



<p class="has-line-data">Thanks to this tool, we can find out which processes and applications consume the most bandwidth. In administrative situations, it is quite useful to identify network abuses.</p>



<p class="has-line-data">Since NetHogs heavily relies on /proc, most features are only available on Linux. NetHogs can be built on Mac OS X and FreeBSD, but it will only show connections, not processes.</p>



<p class="has-line-data">So, let’s get started.</p>



<h2 class="code-line"><a id="Install_Nethogs_on_Ubuntu_2004_12"></a>Install Nethogs on Ubuntu 20.04</h2>



<p class="has-line-data">Nethogs is a mature piece of software included in most Linux distributions. And this includes Ubuntu 20.04 and derivatives, so to install it, just run the following command</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt install nethogs</pre>



<p class="has-line-data">This way we will be able to use it from the terminal.</p>



<h2 class="code-line"><a id="Using_Nethogs_on_Ubuntu_2004_21"></a>Using Nethogs on Ubuntu 20.04</h2>



<p class="has-line-data">The most common way to use it is simply to run it with root permissions as follows:</p>



<pre class="wp-block-preformatted">sudo nethogs</pre>



<p class="has-line-data">There you will notice how the set of applications that are using the network are grouped by processes.</p>



<p class="has-line-data">It is useful to give the program a refresh rate. This rate is measured in seconds and can be specified with the <code>-d</code> option. For example to indicate that every 5 seconds the monitoring should be refreshed.</p>



<pre class="wp-block-preformatted">sudo nethogs -d 5</pre>



<p class="has-line-data">Another useful thing to do is to specify which network interface to monitor.</p>



<pre class="wp-block-preformatted">sudo nethogs -d 5 eth1</pre>



<p class="has-line-data">This way only the network interface <code>eth1</code> is taken into account, but you can also add more than one.</p>



<pre class="wp-block-preformatted">sudo nethogs -d eth1 eth2</pre>



<p class="has-line-data">As you can see, it is quite simple to use.</p>



<p class="has-line-data">Also, you can install a graphical interface called <code>nethogs-qt</code> for better integration.</p>



<h2 class="code-line"><a id="Conclusion_45"></a>Conclusion</h2>



<p class="has-line-data">These kinds of tools, although simple, can be very useful to see which application consumes a lot of bandwidth. This is useful in a home environment but in a production environment, it can be vital.</p>



<p class="has-line-data">Enjoy it.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-nethogs-ubuntu/">Monitoring your network with Nethogs on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-nethogs-ubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
