System Administration
⏱
1 min remaining
Linux Monitoring and Troubleshooting
In this chapter we will discover the various techniques and utilities we can use to monitor a Linux machine.
Resource Monitoring and troubleshooting
vmstat: information about system processes, memory, paging, block I/O, and CPU activityfree: information about system memory and swap usage.df: information about partition and volumes.du: information about disk usageiostat: input/output statistics for block devices.
Process Monitoring
ps: show information about processespgrep: grep through process listpkill: send a signal to a specific process
Log Monitoring
/var/log/: where all system logs are storedjournalctl: Journald clientsyslog: linux logging protocolaudit logs: auditing and monitoring security-relevant events.
Networking
iproute2: Linux userpace network utilitiesping: ICMP utilitytraceroute,mtr: Network path monitoring. Learn Morecurl: HTTP swiss knifedig,nslookup: DNS lookup utilitiestcpdump,wireshark: Packet analyzersnmap: Network scanningnetcat: Networking swiss knifetcpstat: Network interface statistics