Check for IP Block
A quick way to verify whether a specific IP address is blocked by iptables rules on a Linux host. Covers the exact command and how to read the output.
read more
Check Inode Counts with Formatting
Practical bash one-liners for counting inodes per directory and reporting disk usage with formatted output. Handy when you need a quick snapshot of filesystem pressure without pulling in a full monitoring tool.
read more
Check Web Crawler Impact
A quick bash function to identify which search engine crawlers are hitting your Apache logs and how often, so you can spot unusual traffic patterns at a glance.
read more
Chroot Suggested Mounts for Rescue
A quick walkthrough of using virt-rescue to generate the correct mount commands for a chroot rescue session on a libvirt guest.
read more
Count Unique Connecting Addresses
A quick pipeline using awk, sort, and uniq to count how many times each unique IP address appears in a log file. Handy for spotting the most active or suspicious clients at a glance.
read more
Counting Connecting IPs on Port 80 with netstat and ss
Two quick one-liners that count how many unique remote IPs are connected to port 80, using either netstat or ss. Handy for spotting unexpected traffic or verifying that only expected clients are hitting your web server.
read more