{"id":2686,"date":"2024-09-12T02:10:51","date_gmt":"2024-09-12T01:10:51","guid":{"rendered":"https:\/\/bornoe.org\/blog\/?p=2686"},"modified":"2024-09-29T04:03:23","modified_gmt":"2024-09-29T03:03:23","slug":"nload-commands","status":"publish","type":"post","link":"https:\/\/bornoe.org\/blog\/2024\/09\/nload-commands\/","title":{"rendered":"nLoad commands"},"content":{"rendered":"\n<p><code>nload<\/code> is a command-line tool used to monitor network traffic in real time on Unix\/Linux systems. It displays incoming and outgoing traffic separately for a specified network interface, showing visual graphs of bandwidth usage. Users can easily switch between interfaces and adjust display settings, making it useful for monitoring network performance and bandwidth consumption.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installation<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Ubuntu\/Debian<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install nload<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Fedora<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo dnf install nload<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">CentOS\/Red Hat Enterprise Linux (RHEL)<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo yum install nload<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Basic Command<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">nload<\/pre>\n\n\n\n<p>This opens the interface for network monitoring with default settings, usually showing the first network interface it detects.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Usage<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>nload [options] [devices]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>nload eth0<\/code><\/pre>\n\n\n\n<p>Monitors the <code>eth0<\/code> network interface.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Key Features and Options<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Switch between interfaces<\/h3>\n\n\n\n<p>Use <strong>Left<\/strong> and <strong>Right<\/strong> arrow keys to switch between network interfaces.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Toggle graph scaling mode<\/strong><\/h3>\n\n\n\n<p>Use <strong><code>s<\/code><\/strong> to toggle between dynamic and fixed scaling of the graph.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Change graph scale<\/strong><\/h3>\n\n\n\n<p>Use <strong><code>+<\/code><\/strong> or <strong><code>-<\/code><\/strong> to adjust the graph scale manually (for fixed scale mode).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Reset traffic counters<\/strong><\/h3>\n\n\n\n<p>Use <strong><code>r<\/code><\/strong> to reset the traffic statistics.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Help Menu<\/strong><\/h3>\n\n\n\n<p>Press <strong><code>h<\/code><\/strong> to view the in-app help menu for quick reference.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Quit <code>nload<\/code><\/strong><\/h3>\n\n\n\n<p>Press <strong><code>q<\/code><\/strong> to quit and exit the application.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Command-Line Options<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Option<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>-u h<\/code><\/td><td>Show traffic rates in a <strong>human-readable format<\/strong> (adjusts automatically to Kbps, Mbps, or Gbps). This is the default behavior.<\/td><\/tr><tr><td><code>-u b<\/code><\/td><td>Show traffic rates in <strong>bits per second<\/strong> (bps).<\/td><\/tr><tr><td><code>-u k<\/code><\/td><td>Show traffic rates in <strong>kilobits per second<\/strong> (Kbps).<\/td><\/tr><tr><td><code>-u m<\/code><\/td><td>Show traffic rates in <strong>megabits per second<\/strong> (Mbps).<\/td><\/tr><tr><td><code>-u g<\/code><\/td><td>Show traffic rates in <strong>gigabits per second<\/strong> (Gbps).<\/td><\/tr><tr><td><code>-a &lt;time&gt;<\/code><\/td><td>Sets the time window (in seconds) for the average traffic calculation. Default: 300 seconds (5 minutes).<\/td><\/tr><tr><td><code>-i &lt;interval&gt;<\/code><\/td><td>Refresh interval for incoming traffic display (in milliseconds). Default: 500ms.<\/td><\/tr><tr><td><code>-m<\/code><\/td><td>Shows multiple network devices at the same time.<\/td><\/tr><tr><td><code>-o &lt;interval&gt;<\/code><\/td><td>Refresh interval for outgoing traffic display (in milliseconds). Default: 500ms.<\/td><\/tr><tr><td><code>-t &lt;time&gt;<\/code><\/td><td>Sets the refresh interval for the total traffic statistics (in milliseconds).<\/td><\/tr><tr><td><code>-dev &lt;device&gt;<\/code><\/td><td>Start monitoring with the specified network device (e.g., <code>eth0<\/code>, <code>wlan0<\/code>).<\/td><\/tr><tr><td><code>-p &lt;file&gt;<\/code><\/td><td>Use a specific configuration file instead of the default.<\/td><\/tr><tr><td><code>-h<\/code><\/td><td>Display help and exit.<\/td><\/tr><tr><td><code>-V<\/code><\/td><td>Display the version number and exit.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Example Commands<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Monitor a specific interface (e.g., <code>eth0<\/code>)<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>nload eth0<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Display traffic in bits per second<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>nload -u b<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Show multiple interfaces at once<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>nload -m<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Refresh traffic stats every 1 second<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>nload -i 1000 -o 1000<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Set a 1-minute average traffic window<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>nload -a 60<br><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Notes<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>nload<\/code> must be run with superuser privileges (i.e., <code>sudo<\/code>) to monitor certain network interfaces on some systems.<\/li>\n\n\n\n<li>Use <strong>Ctrl+C<\/strong> to exit when running in non-interactive mode.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>nload is a command-line tool used to monitor network traffic in real time on Unix\/Linux systems. It displays incoming and outgoing traffic separately for a specified network interface, showing visual graphs of bandwidth usage. Users can easily switch between interfaces and adjust display settings, making it useful for monitoring network performance and bandwidth consumption. Installation [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,17],"tags":[],"class_list":["post-2686","post","type-post","status-publish","format-standard","hentry","category-gnu-linux","category-linux"],"_links":{"self":[{"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/posts\/2686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/comments?post=2686"}],"version-history":[{"count":4,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/posts\/2686\/revisions"}],"predecessor-version":[{"id":2690,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/posts\/2686\/revisions\/2690"}],"wp:attachment":[{"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/media?parent=2686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/categories?post=2686"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/tags?post=2686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}