envyen
5/25/2016 - 5:32 AM

linux-monitoring.sh

# http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/

# Top – Linux Process Monitoring
$ top

# VmStat – Virtual Memory Statistics
$ vmstat

# Lsof – List Open Files
$ lsof

# Tcpdump – Network Packet Analyzer
$ tcpdump -i eth0

# Netstat – Network Statistics
$ netstat -a | more

# Htop – Linux Process Monitoring
$ htop

# Iotop – Monitor Linux Disk I/O
$ iotop

# Iostat – Input/Output Statistics
$ iostat

# iftop – Network Bandwidth Monitoring
$ iftop

# Disk usage
$ cd directory
# Shows whole size of this directory.
$ sudo du -sh .
# Shows size of all entities in this directory.
$ sudo du -sh *