patrick

patrick

The Many Routes to Root

There are a number of ways to get to root access, some of them not entirely intuitive.  For example, what's the difference between sudo su and sudo -i?  How about su - ? Root can be used in a variety of ways, so there are a variety of ways to get

Secrets of ssh-agent

ssh-agent can be sneaky if you're not watching closely.  This command allows you to store your passphrase-protected SSH keys securely, but it doesn't work like most other commands.   Unlike traditional commands, like cat or touch or renice, ssh-agent isn't invoked directly, and there's some prep-work that has to be done

Scheduling and Killing Processes

Sometimes processes crash, or use too many resources, or just need to be gracefully shut down.  In this post, I'll cover the following: nicerenicekillpkillLet's talk about killing first. There are actually two different commands with "kill" in them, and they do different things.  There are also different ways of killing

elif: Not a Tolkien Character

elif is a portmanteau consisting of the words "else" and "if".  In bash (and Python), it's a way to test multiple statements before closing a loop, as opposed to the single statement test provided by else.  If a typical if/then construct uses an if/then/else format, elif allows

What is Docker?

And why would you want to use it?Put simply, a Docker container is like a mini virtual machine.  It contains just enough to do what it needs to do, and no more.  It's also isolated from the machine it's running on, so crashing the host machine is many orders