Fixing Sudo

A decade-old massive and easy-to-exploit security hole (CVE-2021-3156) has been found in sudo allowing for full root access by any unprivileged system user. This...

A Wrapper Script for unrar

Just a straightforward wrapper script for the unrar command that allows extracting specified filetypes from multipart archives while utilizing all available CPU cores. Seriously, who...

Show Logged In Users During a Time Window

Let's say you want to see who was logged in on the server during last weekend. This includes users who, say, logged in on...
When Was that Server Built?

When Was that Server Built?

Just a quick note on how to (sort of) figure out when a server first came online. This can be useful to various folks...
Deleting Lots of Files Quickly

Deleting Lots of Files Quickly

I am not talking about hundreds or thousands of files. I am talking about hundreds of thousands. The usual "/bin/rm -rf *" may work...
Bash and Expect Snippets

Bash and Expect Snippets

A small collection of maybe helpful examples of how to use expect with Bash. This is a very useful tool, especially when writing a...
Taking Linux Temperature

Taking Linux Temperature

Just some notes on setting up temperature monitoring and alerting on CentOS/RHEL running on HP ProLiant. The first step is to install lm_sensors: yum -y...
Find + Rsync + Xargs

Find + Rsync + Xargs

Just some quick syntax for running multiple rsync threads in parallel using find and xargs. In many cases (especially if NFS is involved)  this can...
Show NIC Bandwidth Utilization

Show NIC Bandwidth Utilization

Just a quick script that will measure bandwidth utilization in KB/s for all NICs on your server over the specified period of time. You can...