Essential Linux Ops Tools: Monitoring, Performance, and Security Utilities
This guide presents a curated list of practical Linux administration tools—including Nethogs, IOzone, iotop, IPtraf, iftop, htop, nmon, MultiTail, Fail2ban, tmux, Agedu, NMap, and Httperf—complete with brief descriptions, download links, and command‑line installation examples for system monitoring, performance testing, and security hardening.
This article introduces several practical Linux operations tools that can help system administrators with monitoring, performance testing, and security.
1. Nethogs
Nethogs is a terminal‑based network traffic monitor that shows bandwidth usage per process.
Download: http://sourceforge.net/projects/nethogs/files/nethogs/0.8/nethogs-0.8.0.tar.gz/download
# yum -y install libpcap-devel ncurses-devel
# tar zxvf nethogs-0.8.0.tar.gz
# cd nethogs
# make && make install
# nethogs eth02. IOzone
IOzone is a Linux filesystem performance testing tool that measures read/write speeds across different operating systems.
Download: http://www.iozone.org/src/current/
# tar xvf iozone3_420.tar
# cd iozone3_420/src/current/
# make linux
# ./iozone -a -n 512m -g 16g -i 0 -i 1 -i 5 -f /mnt/iozone -Rb ./iozone.xls-a use automatic mode -n set minimum file size (KB) -g set maximum file size (KB) -i select test to run -f specify test file name (deleted after run) -R output Excel to stdout -b specify output file
3. iotop
iotop displays real‑time disk I/O usage, with an interface similar to the top command.
# yum -y install iotop4. IPtraf
IPtraf is a simple Linux network status analysis tool.
# yum -y install iptraf5. iftop
iftop is a real‑time network traffic monitor that provides a more visual view than iptraf.
Download: http://www.ex-parrot.com/~pdw/iftop/
# tar zxvf iftop-0.17.tar.gz
# cd iftop-0.17
# ./configure
# make && make install
# iftop -i eth0TX: transmitted traffic
RX: received traffic
TOTAL: total traffic
Cumm: cumulative traffic since start
peak: traffic peak
rates: average over 2s, 10s, 40s
6. htop
htop is an interactive process viewer for Linux that can replace the default top command.
# yum -y install htop7. nmon
nmon is a widely used monitoring and analysis tool for AIX and various Linux distributions.
Download: http://sourceforge.jp/projects/sfnet_nmon/releases/
# chmod +x nmon_x86_64_rhel6
# mv nmon_x86_64_rhel6 /usr/sbin/nmon
# nmon8. MultiTail
MultiTail opens multiple windows in the console to monitor several log files simultaneously, similar to the tail command.
# yum -y install multitail
# multitail -e "fail" /var/log/secure # filter by keyword
# multitail -l "ping baidu.com" # monitor command output
# multitail -i /var/log/messages -i /var/log/secure # monitor multiple files9. Fail2ban
Fail2ban watches system logs, matches error patterns with regular expressions, and blocks offending IPs via the firewall.
Download: http://www.fail2ban.org/wiki/index.php/Downloads
# cd fail2ban-0.8.11
# python setup.py install
# cp ./redhat-initd /etc/init.d/fail2ban
# service fail2ban start
# chkconfig --add fail2ban
# chkconfig fail2ban onTypical configuration (jail.conf) sets ignore IPs, ban time, find time, max retries, and specifies actions such as iptables for SSH.
# grep -v "^#" /etc/fail2ban/jail.conf | grep -v "^$" [DEFAULT]
ignoreip = 127.0.0.1/8
bantime = 600
findtime = 600
maxretry = 3
backend = auto
usedns = warn
[ssh-iptables]
enabled = true
filter = sshd
action = iptables[name=SSH, port=ssh, protocol=tcp]
logpath = /var/log/sshd.log
maxretry = 510. tmux
tmux is a powerful terminal multiplexer that provides more flexibility and efficiency than GNU Screen, keeping sessions alive after SSH disconnections.
11. Agedu
Agedu visualizes disk space usage.
Download: http://www.chiark.greenend.org.uk/~sgtatham/agedu/
# tar zxvf agedu-r9723.tar.gz
# cd agedu-r9723
# ./configure
# make && make install
# agedu -s / # scan
# agedu -w --address 192.168.0.10:80
# agedu -w --address 192.168.0.108080 --auth none12. NMap
NMap is a network scanning and fingerprinting toolkit for Linux.
Download: http://nmap.org/download.html
# tar jxvf nmap-6.40.tar.bz2
# ./configure
# make && make install
# nmap 192.168.0.10 # basic info
# nmap -O 192.168.0.10 # OS detection
# nmap -A 192.168.0.10 # comprehensive scan
# nmap 192.168.0.0/24 # scan whole subnet-sS TCP SYN scan -sV service version detection
13. Httperf
Httperf is a web stress testing tool more powerful than ab, capable of simulating realistic traffic patterns.
Download: http://code.google.com/p/httperf/downloads/list
# tar zxvf httperf-0.9.0.tar.gz
# cd httperf-0.9.0
# ./configure
# make && make install
# httperf --hog --server=192.168.0.202 --uri=/index.html --num-conns=10000 --wsess=10,10,0.1Key parameters:
--hog: generate as many connections as possible
--num-conns: total number of connections (e.g., 10000)
--wsess: simulate web sessions (sessions, requests per session, interval)
© Article originally sourced from the web; all rights belong to the original author.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
