20 Command Line Tools To Monitor Linux Performance
20 Command Line Tools To Monitor Linux Performance
RedHat RHCSA and RHCE Certi cation Preparation Guide - Get This Book
Menu
Menu
Ravi Saive Last Updated: January 3, 2015 Linux Commands, Monitoring Tools 118 Comments
AD
It’s really very tough job for every System or Network administrator to monitor and debug Linux System
Performance problems every day. After being a Linux Administrator for 5 years in IT industry, I came to know that
how hard is to monitor and keep systems up and running. For this reason, we’ve compiled the list of Top 20
frequently used command line monitoring tools that might be useful for every Linux/Unix System Administrator.
These commands are available under all avors of Linux and can be useful to monitor and nd the actual causes of
performance problem. This list of commands shown here are very enough for you to pick the one that is suitable for
your monitoring scenario.
Ad
AD
SCOM Dashboards and Reporting
SquaredUp
LEARN MORE
Linux Command Line Monitoring
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 1/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
Linux Top command is a performance monitoring program which is used frequently by many system administrators
to monitor Linux performance and it is available under many Linux/Unix like operating systems. The top command
used to dipslay all the running and active real-time processes in ordered list and updates it regularly. It display CPU
usage, Memory usage, Swap Memory, Cache Size, Buffer Size, Process PID, User, Commands and much more. It
also shows high memory and cpu utilization of a running processess. The top command is much userful for system
administrator to monitor and take correct action when required. Let’s see top command in action.
# top
For more examples of Top command read : 12 TOP Command Examples in Linux
Linux VmStat command used to display statistics of virtual memory, kernerl threads, disks, system processes, I/O
blocks, interrupts, CPU activity and much more. By default vmstat command is not available under Linux systems
you need to install a package called sysstat that includes a vmstat program. The common usage of command
format is.
# vmstat
Ad
AD
SCOM Dashboards and Reporting
SquaredUp -----io---- --system-- -----cpu-----
procs -----------memory---------- ---swap--
r b swpd free inact active si so bi bo in LEARN
cs us sy id wa MORE
st
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 2/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
Lsof command used in many Linux/Unix like system that is used to display list of all the open les and the
processes. The open les included are disk les, network sockets, pipes, devices and processes. One of the main
reason for using this command is when a disk cannot be unmounted and displays the error that les are being used
or opened. With this commmand you can easily identify which les are in use. The most common format for this
command is.
# lsof
More lsof command usage and examples : 10 lsof Command Examples in Linux
Tcpdump one of the most widely used command-line network packet analyzer or packets sniffer program that is
used capture or lter TCP/IP packets that received or transferred on a speci c interface over a network. It also
provides a option to save captured packages in a le for later analysis. tcpdump is almost available in all major
Linux distributions.
# tcpdump -i eth0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
Ad AD
listening on eth0, link-type EN10MBSCOM
(Ethernet), capture
Dashboards and size 96 bytes
Reporting
22:08:59.617628 IP tecmint.com.ssh SquaredUp
> 115.113.134.3.static-mumbai.vsnl.net.in.28472: P 25321333
LEARN MORE
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 3/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
Netstat is a command line tool for monitoring incoming and outgoing network packets statistics as well as
interface statistics. It is very useful tool for every system administrator to monitor network performance and
troubleshoot network related problems.
# netstat -a | more
Htop is a much advanced interactive and real time Linux process monitoring tool. This is much similar to Linux top
command but it has some rich features like user friendly interface to manage process, shortcut keys, vertical and
horizontal view of the processes and much more. Htop is a third party tool and doesn’t included in Linux systems,
you need to install it using YUM package manager tool. For more information on installation read our article below.
# htop
Ad
AD
SCOM Dashboards and Reporting
SquaredUp
LEARN MORE
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 4/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
For Htop installation read : Install Htop (Linux Process Monitoring) in Linux
Iotop is also much similar to top command and Htop program, but it has accounting function to monitor and
display real time Disk I/O and processes. This tool is much useful for nding the exact process and high used disk
read/writes of the processes.
# iotop
Ad
AD Iotop Command Example Screenshot
SCOM Dashboards and Reporting
SquaredUp
For Ioptop installation and usage read : Install Iotop in Linux LEARN MORE
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 5/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
IoStat is simple tool that will collect and show system input and output storage device statistics. This tool is often
used to trace storage device performance issues including devices, local disks, remote disks such as NFS.
# iostat
For more Iostat usage and examples visit : 6 Iostat Command Examples in Linux
IPTraf is an open source console-based real time network (IP LAN) monitoring utility for Linux. It collects a variety of
information such as IP traf c monitor that passes over the network, including TCP ag information, ICMP details,
TCP/UDP traf c breakdowns, TCP connection packet and byne counts. It also gathers information of general and
detaled interface statistics of TCP, UDP, IP, ICMP, non-IP, IP checksum errors, interface activity etc.
Ad
AD
SCOM Dashboards and Reporting
SquaredUp
LEARN MORE
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 6/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
IP Traf c Monitor
For more information and usage of IPTraf tool, please visit : IPTraf Network Monitoring Tool
psacct or acct tools are very useful for monitoring each users activity on the system. Both daemons runs in the
background and keeps a close watch on the overall activity of each user on the system and also what resources are
being consumed by them.
These tools are very useful for system administrators to track each users activity like what they are doing, what
commands they issued, how much resources are used by them, how long they are active on the system etc.
For installation and example usage of commands read the article on Monitor User Activity with psacct or acct
Monit is a free open source and web based process supervision utility that automatically monitors and managers
system processes, programs, les, directories, permissions, checksums and lesystems.
It monitors services like Apache, MySQL, Mail, FTP, ProFTP, Nginx, SSH and so on. The system status can be viewed
from the command line or using it own web interface.
Ad
AD
SCOM Dashboards and Reporting
SquaredUp
LEARN MORE
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 7/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
NetHogs is an open source nice small program (similar to Linux top command) that keeps a tab on each process
network activity on your system. It also keeps a track of real time network traf c bandwidth used by each program
or application.
Ad
AD
NetHogs Linux Bandwidth Monitoring
SCOM Dashboards and Reporting
SquaredUp
LEARN MORE
Read More : Monitor Linux Network Bandwidth Using NetHogs
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 8/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
iftop is another terminal-based free open source system monitoring utility that displays a frequently updated list of
network bandwidth utilization (source and destination hosts) that passing through the network interface on your
system. iftop is considered for network usage, what ‘top‘ does for CPU usage. iftop is a ‘top‘ family tool that monitor
a selected interface and displays a current bandwidth usage between two hosts.
Monitorix is a free lightweight utility that is designed to run and monitor system and network resources as many as
possible in Linux/Unix servers. It has a built in HTTP web server that regularly collects system and network
information and display them in graphs. It Monitors system load average and usage, memory allocation, disk
driver health, system services, network ports, mail statistics (Sendmail, Post x, Dovecot, etc), MySQL statistics
and many more. It designed to monitor overall system performance and helps in detecting failures, bottlenecks,
abnormal activities etc.
Ad
AD
SCOM Dashboards and Reporting
SquaredUp
LEARN MORE
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 9/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
Monitorix Monitoring
Read More : Monitorix a System and Network Monitoring Tool for Linux
Arpwatch is a kind of program that is designed to monitor Address Resolution (MAC and IP address changes) of
Ethernet network traf c on a Linux network. It continuously keeps watch on Ethernet traf c and produces a log of IP
and MAC address pair changes along with a timestamps on a network. It also has a feature to send an email alerts
to administrator, when a pairing added or changes. It is very useful in detecting ARP spoo ng on a network.
Suricata is an high performance open source Network Security and Intrusion Detection and Prevention Monitoring
System for Linux, FreeBSD and Windows.It was designed and owned by a non-pro t foundation OISF (Open
Information Security Foundation).
VnStat PHP a web based frontend application for most popular networking tool called “vnstat“. VnStat PHP
monitors a network traf c usage in nicely graphical mode. It displays a total IN and OUT network traf c usage in
hourly, daily, monthly and full summary report.
Ad
AD
SCOM Dashboards and Reporting
Read More : VnStat PHP – Monitoring Network Bandwidth
SquaredUp
LEARN MORE
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 10/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
Nagios is an leading open source powerful monitoring system that enables network/system administrators to
identify and resolve server related problems before they affect major business processes. With the Nagios system,
administrators can able to monitor remote Linux, Windows, Switches, Routers and Printers on a single window. It
shows critical warnings and indicates if something went wrong in your network/server which indirectly helps you to
begin remediation processes before they occur.
Read More : Install Nagios Monitoring System to Monitor Remote Linux/Windows Hosts
The Online Mode, is used for real-time monitoring and Capture Mode, is used to store the output in CSV format for
later processing.
Nmon Monitoring
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 11/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
Collectl Monitoring
We would like to know what kind of monitoring programs you use to monitor performance of your Linux servers?
If we’ve missed any important tool that you would like us to include in this list, please inform us via comments and
please don’t forget to share it.
Linux Monitoring
LUKS: Linux Hard Disk Data Encryption with NTFS linux-dash: Monitors “Linux Server Performance”
Support in Linux Remotely Using Web Browser
If you liked this article, then do subscribe to email alerts for Linux tutorials. If you have any questions or doubts?
do ask for help in the comments section.
TecMint is the fastest growing and most trusted community site for any kind of Linux
Articles,AD
Ad
Guides and Books on the web. Millions of people visit TecMint! to search or browse
the thousands of published articlesSCOM Dashboards and Reporting
available FREELY to all.
SquaredUp
LEARN MORE
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 12/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of
appreciation.
Related Posts
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 13/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
Ad
AD
SCOM Dashboards and Reporting
SquaredUp
LEARN MORE
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 14/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
How to Work with Date and Time in Bash Using date Command
Ad
AD
SCOM Dashboards and Reporting
SquaredUp
LEARN MORE
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 15/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
Ad
AD
SCOM Dashboards and Reporting
SquaredUp
LEARN MORE
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 16/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 17/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
Bindas Yar
January 13, 2021 at 12:13 pm
Memorize these for job interviews and pretend to know about them. Once you get hired, just sit back, relax,
and enjoy.
Reply
user214
May 27, 2020 at 1:42 am
Reply
Joel Wangolo
February 26, 2020 at 5:25 pm
I use this “Lsof” command a lot and there is not mentioned here about goaccess. I use it a lot to monitor
Nginx log and other Nginx traf c stats.
Reply
kalyan
December 3, 2019 at 4:41 pm
Hi Team,
I need help with monitoring URL by Nagios tool. Currently, I have installed Nagios 4.4.5.
Reply Ad
AD
SCOM Dashboards and Reporting
SquaredUp
LEARN MORE
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 18/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
← Older Comments
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Notify me of followup comments via e-mail. You can also subscribe without commenting.
Post Comment
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Ad
AD
SCOM Dashboards and Reporting
SquaredUp
LEARN MORE
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 19/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
Ad
AD
www.monotaro.id BUKA
AD
Ad
AD
SCOM Dashboards and Reporting
Linux Foundation LFCS and LFCE Certi cationSquaredUp
Study Guide [eBooks]
LEARN MORE
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 20/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
Ad
AD
5 Useful Commands to Manage File Types and System Time in Linux – Part 3
Ad
AD
SCOM Dashboards and Reporting
SquaredUp
If You Appreciate What We Do Here On TecMint, You Should Consider:
LEARN MORE
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 21/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
AD
Setting Up Real-Time Monitoring with ‘Ganglia’ for Grids and Clusters of Linux Servers
Mhddfs – Combine Several Smaller Partition into One Large Virtual Storage
How to Use ‘ nd’ Command to Search for Multiple Filenames (Extensions) in Linux
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 22/23
3/4/2021 20 Command Line Tools to Monitor Linux Performance
10 Best Free and Open Source Software (FOSS) Programs I Found in 2020
9 Best Twitter Clients for Linux That You Will Love to Use
Donate to TecMint Contact Us Advertise on TecMint Linux Services Copyright Policy Privacy Policy Career
Sponsored Post
Tecmint: Linux Howtos, Tutorials & Guides © 2021. All Rights Reserved.
The material in this site cannot be republished either online or of ine, without our permission.
Ad
AD
SCOM Dashboards and Reporting
SquaredUp
LEARN MORE
https://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ 23/23