<?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>iftop Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/iftop/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 19 Mar 2018 14:28:13 +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>How to Monitor Bandwidth on Linux</title>
		<link>https://www.osradar.com/monitor-bandwidth-linux/</link>
					<comments>https://www.osradar.com/monitor-bandwidth-linux/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Tue, 06 Mar 2018 02:47:54 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[bandwidth monitor]]></category>
		<category><![CDATA[iftop]]></category>
		<category><![CDATA[linux bandwidth monitor]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=2055</guid>

					<description><![CDATA[<p>Linux is one of the best operating systems for advanced users. It lets to take control over the entire environment and have fun. Today, let’s take a look how to monitor bandwidth on Linux. In this tutorial, we’ll be using a tool named “iftop” (Interface TOP). It’s a real-time bandwidth monitoring tool that works on [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/monitor-bandwidth-linux/">How to Monitor Bandwidth on Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Linux is one of the best operating systems for advanced users. It lets to take control over the entire environment and have fun. Today, let’s take a look how to monitor bandwidth on Linux.</p>
<p>In this tutorial, we’ll be using a tool named “<em>iftop</em>” (Interface TOP). It’s a real-time bandwidth monitoring tool that works on the CLI. This tool will show you real-time network usage every 2, 10 &amp; 40 seconds. Let’s get started.</p>
<h3>Install <em>iftop</em></h3>
<p>This tool requires two dependencies – <em>libpcap</em> and <em>libncurses</em>. So, before installing the original software package, install them first. Use the following commands:</p>
<pre class="lang:default decode:true">$ sudo apt install libpcap0.8 libpcap0.8-dev libncurses5 libncurses5-dev  [For Debian/Ubuntu]
# yum  -y install libpcap libpcap-devel ncurses ncurses-devel             [For CentOS/RHEL]
# dnf  -y install libpcap libpcap-devel ncurses ncurses-devel             [For Fedora 22+]</pre>
<p>After the dependencies are installed, it’s time to install the real software. Use the following command(s) according to your Linux distro.</p>
<pre class="lang:default decode:true">$ sudo apt install iftop                  [For Debian/Ubuntu]

# yum install epel-release
# yum install  iftop                      [For RHEL/CentOS]

# dnf install iftop                       [For Fedora 22+]</pre>
<p>If your distro isn’t shown here, you can download and compile “<em>iftop</em>” for your distro. <a href="http://www.ex-parrot.com/pdw/iftop/">Download the latest TAR.GZ file from the site</a>. Then, follow the commands in the downloaded file’s directory.</p>
<pre class="lang:default decode:true"># tar -zxvf iftop-0.17.tar.gz
# cd iftop-0.17
# ./configure
# make
# make install</pre>
<h3><em>Iftop </em>usage</h3>
<p>To start <em>iftop</em>, run this command in the terminal.</p>
<pre class="lang:default decode:true"># sudo iftop</pre>
<p>Here’s a sample output. Remember, <em>iftop</em> is a CLI tool.</p>
<p><img loading="lazy" class="aligncenter wp-image-2154 size-full" src="https://www.osradar.com/wp-content/uploads/2018/03/iftop-interface.png" alt="" width="1056" height="657" srcset="https://www.osradar.com/wp-content/uploads/2018/03/iftop-interface.png 1056w, https://www.osradar.com/wp-content/uploads/2018/03/iftop-interface-300x187.png 300w, https://www.osradar.com/wp-content/uploads/2018/03/iftop-interface-768x478.png 768w, https://www.osradar.com/wp-content/uploads/2018/03/iftop-interface-1024x637.png 1024w, https://www.osradar.com/wp-content/uploads/2018/03/iftop-interface-356x220.png 356w, https://www.osradar.com/wp-content/uploads/2018/03/iftop-interface-696x433.png 696w, https://www.osradar.com/wp-content/uploads/2018/03/iftop-interface-675x420.png 675w" sizes="(max-width: 1056px) 100vw, 1056px" /></p>
<p>&nbsp;</p>
<p>If you need to monitor any specific network interface, you have to identify the target attached network interfaces on your Linux. Use these commands to identify all the attached network interface.</p>
<pre class="lang:default decode:true"># sudo ifconfig
OR
# sudo ip addr show</pre>
<p>Then, use this command to run <em>iftop</em> monitoring specifically the network interface. For example, if you have to monitor “wlp2s0”, use this command:</p>
<pre class="lang:default decode:true"># sudo iftop -i wlp2s0</pre>
<p>For turning on port display, use this command:</p>
<pre class="lang:default decode:true"># sudo iftop -P wlp2s0</pre>
<p>&nbsp;</p>
<p><img loading="lazy" class="aligncenter wp-image-2155 size-full" src="https://www.osradar.com/wp-content/uploads/2018/03/port-display-iftop.png" alt="" width="1057" height="655" srcset="https://www.osradar.com/wp-content/uploads/2018/03/port-display-iftop.png 1057w, https://www.osradar.com/wp-content/uploads/2018/03/port-display-iftop-300x186.png 300w, https://www.osradar.com/wp-content/uploads/2018/03/port-display-iftop-768x476.png 768w, https://www.osradar.com/wp-content/uploads/2018/03/port-display-iftop-1024x635.png 1024w, https://www.osradar.com/wp-content/uploads/2018/03/port-display-iftop-356x220.png 356w, https://www.osradar.com/wp-content/uploads/2018/03/port-display-iftop-696x431.png 696w, https://www.osradar.com/wp-content/uploads/2018/03/port-display-iftop-678x420.png 678w" sizes="(max-width: 1057px) 100vw, 1057px" /></p>
<p>In order to disable hostname lookup, use “-n” flag.</p>
<pre class="lang:default decode:true"># sudo iftop -n  eth0</pre>
<p>Additionally, you can use “S” or “D” to show “sources”, “destination” etc. For the in-depth and detailed explanations and tricks of commands, use this command to view the integrated tutorial.</p>
<pre class="lang:default decode:true">man iftop</pre>
<p>After you’re satisfied, you can turn off <em>iftop</em> by pressing “q” in the terminal window.</p>
<p>If the default screen of the terminal is scary, try out some of the <a href="https://www.osradar.com/the-best-terminal-emulators-for-linux/">best terminal emulators for Linux</a>. It&#8217;ll help you relax a lot.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/monitor-bandwidth-linux/">How to Monitor Bandwidth on Linux</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/monitor-bandwidth-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
