Tagged articles
9 articles
Page 1 of 1
Coder Trainee
Coder Trainee
Mar 5, 2026 · Operations

Why is Linux’s buff/cache so large and how to clear it automatically

When running `free -h` on a Linux system, you may notice the buff/cache entry consuming over a gigabyte, leaving little memory for applications; this article explains that the cache is built from file I/O, shows how to manually drop it via `/proc/sys/vm/drop_caches`, and provides a cron‑based script to automate the cleanup.

LinuxMemory Managementbuff/cache
0 likes · 4 min read
Why is Linux’s buff/cache so large and how to clear it automatically
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