CPU
- Display statistics for all processors at 1 second intervals.
mpstat -P ALL 1
Memory
- Display memory statistics at 1 second intervals with human readable format.
sar -r --human 1
IO
- Display extended statistics at 1 second intervals for device
dev
.iostat --human -x $dev 1
Network
- Display network statistics at 1 second intervals for the network interface
eth0
.sar --human -n DEV --iface=eth0 1
Sockets
- display listening TCP and UDP sockets
ss -nltup
- dispaloy both listening and non-listening TCP and UDP sockets
ss -atup
- example of state filter
ss -p state established 'dport = 5432'