IP Tables Rate Limit Bad Bots
Use iptables string matching and the recent module to drop connections from abusive bots that exceed a request threshold within a short window.
read more
Just a quick way to look at Inode Counts
A quick bash one-liner to identify which directories are consuming the most inodes on a Linux system, helping you pinpoint the source of ‘No space left on device’ errors when disk space still appears available.
read more
Locate Files Based on Time Modified with find
A quick reference for using find with -mtime and -mmin to locate files by how long ago they were last modified, including the common off-by-one confusion around the +1 flag.
read more
Locate Largest Files Top 10
A quick one-liner to identify the ten largest files or directories under any path. Useful when disk space is tight and you need to find what is eating your storage.
read more
Lsof Check Listening Ports
A quick way to list every port a process is listening on, using lsof and a simple grep filter. Handy for troubleshooting connectivity issues or auditing what services are exposed on a host.
read more
Making the Cut: Slicing Up Text in the Linux CLI
A quick reference for the cut command, covering how to split text by a delimiter and extract specific fields. Useful for parsing CSV, log files, and other delimited data from the command line.
read more