- Kali Linux Tutorial
- Kali Linux - Home
- Installation & Configuration
- Information Gathering Tools
- Vulnerability Analyses Tools
- Kali Linux - Wireless Attacks
- Website Penetration Testing
- Kali Linux - Exploitation Tools
- Kali Linux - Forensics Tools
- Kali Linux - Social Engineering
- Kali Linux - Stressing Tools
- Kali Linux - Sniffing & Spoofing
- Kali Linux - Password Cracking Tools
- Kali Linux - Maintaining Access
- Kali Linux - Reverse Engineering
- Kali Linux - Reporting Tools
- Kali Linux Useful Resources
- Kali Linux - Quick Guide
- Kali Linux - Useful Resources
- Kali Linux - Discussion
What Linux utility for sorting processes by network usage?
Linux provides the famous top command utility that provides us with all the information about the processes, their time, their respective IDs, how much CPU chunk they are consuming and much more. The only issue with that is the processes are not sorted in any order and the order changes frequently.
There are certain cases where we would like the output to be in a sorted manner somehow, like sorted in the sense that the process which is using the most network will be at the top.
One such command line program that we can use that will provide us the desired output is NetHogs.
NetHogs is a command line program that is used to monitor real time network traffic bandwidth used by each process or application.
For CentOS and Fedora
yum install nethogs
For Ubuntu and Debian
sudo apt-get install nethogs
Now that we have nethogs installed we can make use of it by the commands shown below −
For red-hat based systems
To execute it, it is necessary to provide the root permissions, so we run it with the sudo command as shown below −
PID USER PROGRAM DEV SENT RECEIVED 4071 immukul /usr/lib/sample.go wlp1s0 0.032 0.019 KB/sec 89828 immukul /usr/lib/thunderbird wlp1s0 0.029 0.017 KB/sec 15972 immukul unknown TCP wlp1s0 0.018 0.011 KB/sec 78292 immukul --skype-process wlp1s0 0.008 0.003 KB/sec
- Related Articles
- Monitoring Network Usage in Linux
- How to see top processes sorted by actual memory usage on Linux?
- Managing Processes in Linux
- Measure CPU usage for a process on Linux?
- Threads vs Processes in Linux
- Zombie and Orphan Processes in Linux
- What is Network Sniffing? Types, Working, Usage, Tools
- How to Find the List of Daemon Processes and Zombie Processes in Linux
- How to Kill Linux Processes Using ‘xkill’ Command
- How to find and kill running processes in linux
- Checking Host’s Network Availability in Linux
- Great tools to check linux disk partitions and usage in linux
- What do you mean by Sorting Materials?
- How to free Inode usage on Linux?
- What is the basis for sorting materials?