/img/me.png

Just some guy on the internet.

sudoedit /etc/blog

Search and replace with Vim and Sed

Using search and replace is a great way to save time when editing large files in Linux. Becoming proficient with this task will increase your efficiency and will reduce your time spent doing tedious and error-prone file edits by hand. For the sake of this tutorial, I’m going to use a copy of the /etc/apt/sources.list file to illustrate some of the changes that we can make. From your users home directory copy the sources.

Command not found!

So you’re running through some instructions to configure software on your system, or troubleshoot some problem with a service and you see an error at the command line that says “command not found”. Here is how to locate the packages you need to install in order to use commands that are not available on your system. CentOS/Red Hat - yum provides Yum is an excellent package manager with lots of great built in functions.

What to do when df and du report different usage.

You may occasionally come across an issue where running df will produce output that disagree’s with the output of the du command. If you aren’t familiar with these two commands do see my post about filesystem and directory size. The reason for the difference in reported size is that df does not differentiate between files that are open in memory but have been deleted, or altered on the disk, whereas du will only see the files that are on the disk.

Managing packages with zypper

Suse Enterprise Linux and it’s upstream community distro openSUSE use a package manager called zypper . zypper is a fast easy to use package management tool. In my opinion, zypper is hands down the best package manager out there. It provides meaningful, easy to read output, it resolves package dependencies quickly, and it has a cool name. zypper has many options that can be abbreviated; install (in) , search (se) , info (if) , update (up) and lots of others.

Microsoft and Linux working together!

I’ve been thrilled to see the recent collaboration between Microsoft and various Linux distributions. Everyone has seen the Microsoft <3 Linux headlines over the last few months, and I’ve been curious about how this relationship has been reciprocated by the Linux community. So I decided to ask Stephanie Wonderlick at Red Hat and Rebecca Cradick at Canonical (the company behind Ubuntu) a few questions about the current state of Linux and Microsoft’s cross-platform cooperation.

Uncomplicated Firewall... be careful

If like me, you enjoy the simplicity of ufw (Uncomplicated Firewall) on your Ubuntu servers be careful when you turn it on. ufw doesn’t have any default rules to allow ssh inbound by default, if you aren’t careful when turning it on you could find yourself locked out! If you don’t have direct console access to the server that could mean being locked out forever! Not a conversation you want to have with a client, or your boss,… or tech support at your friendly cloud provider.