Showing posts from March, 2018

The caret is mightier than the up arrow

  I learned a fun bash trick a while ago that I thought I would share. In a bash shell you can use the caret ^ symbol to find and replace a sequence of characters in your previous command. For instance if you type: sudo systemctl restart httpd and then want to look at the status of the httpd service all you need to do is: ^restart^status Bash will look at the last command in your history and replace the first occurrence of “restart” with “status” and run the new command. Over the last week or so I’ve found that I get the most use out of this trick from my atrocious spelling. More often than not I spell “systemctl” as “systemclt”, or instead of “sudo something” I type “sodu something.” Using the caret syntax I can quickly fix my spelling mistakes in the command line without having to retype long strings  that had a couple of letters out of place. The other thing this is useful for, is to show off your awesome command line skills and see the looks of adoration you get from your fellow Li


  I’ve been spending quite a bit of time learning about LXD/LXC containers on Ubuntu. There is a lot of really good information available about how to get started with these containers so I’m not going try to reproduce that content here, however, I will provide links at the bottom that I think are relevant to learn more about LXD and LXC. Below I outline what it is that I like about LXC these reasons are also the driving factors behind my decision to use LXC for web hosting as opposed to other container technologies.   Though I should note that LXC and Docker are not mutually exclusive . If you are comfortable using Docker you may want to consider using both of these technologies. LXC containers are unprivileged. An unprivileged container is a container that is not running as root on the host machine. The root account in the container is mapped to a random non-root uid on the host. According to Canonical “ Unprivileged containers are safe by design. The container   uid   0 is mapped to