Posts

Understanding Exit Codes and how to use them in bash scripts

Lately I've been working on a lot of automation and monitoring projects, a big part of these projects are taking existing scripts and …

Removing packages and configurations with apt-get

Yesterday while re-purposing a server I was removing packages with apt-get and stumbled upon an interesting problem. After I removed …

Using salt-api to integrate SaltStack with other services

Recently I have been looking for ways to allow external tools and services to perform corrective actions across my infrastructure …

8 Tips for creating better bash scripts

When I was first got started with administrating Linux and Unix servers I was working in an environment where there were tons of adhoc …

Using Saltstack to update all hosts, but not at the same time

Configuration management and automation tools like SaltStack are great, they allow us to deploy a configuration change to thousands of …

Using sysdig to Troubleshoot like a boss

If you haven't seen it yet there is a new troubleshooting tool out called sysdig. It's been touted as strace meets tcpdump and well, it …

Understanding the kill command, and how to terminate processes in Linux

One of my biggest pet peeves as a Linux sysadmin is when I see users, or even other sysadmins using kill -9 on the first attempt to …

Getting around the Linux directory structure with the cd command

Today is very much a “back to the basics” kind of day. In this article I am going to cover one of the most basic commands …

Sending redis traffic through an SSL tunnel with stunnel

Lately if you have been paying attention to tech or even mainstream media you might have seen a few stories about data breaches. …

Converting files from Windows format to Unix format with dos2unix

Ever run a shell script and get the following error? # ./dosfile.sh : bad interpreter: No such file or directory The error may look …