Liangxu Linux
Liangxu Linux
Sep 4, 2024 · Operations

How to Build a Bash Script for Real‑Time Linux CPU, Memory, and Disk I/O Monitoring

This article provides a complete Bash script that gathers Linux system metrics—including IP address, CPU core count, utilization percentages, load averages, memory and swap usage, and disk I/O statistics—while explaining each command (ifconfig, grep, awk, top, vmstat, free, iostat, uptime) and how the script assembles the results.

CPUMemorydisk-io
0 likes · 16 min read
How to Build a Bash Script for Real‑Time Linux CPU, Memory, and Disk I/O Monitoring
Liangxu Linux
Liangxu Linux
Oct 30, 2021 · Operations

Comprehensive Linux Daily Inspection Bash Script for System Health Monitoring

This article provides a complete Bash script that performs daily health checks on a Linux host, gathering information on disk usage, memory, CPU, processes, services, network configuration, user accounts, password policies, firewall, SELinux, NTP, SNMP, JDK, and more, then formats the results into a report and emails it.

bashdaily-checkshell-script
0 likes · 18 min read
Comprehensive Linux Daily Inspection Bash Script for System Health Monitoring
ITPUB
ITPUB
Jun 30, 2017 · Operations

Automate Linux Swap File Creation and Removal with Simple Shell Scripts

This guide shows how to check existing swap space, then use two lightweight shell scripts to automatically create, mount, and later remove a swap file on Linux, including code examples, permission steps, and verification commands.

Linuxautomationshell-script
0 likes · 5 min read
Automate Linux Swap File Creation and Removal with Simple Shell Scripts