wordpres

Conditions in bash scripting (if statements)

If you use bash for scripting you will undoubtedly have to use conditions a lot, for example for an if … then construct or a while loop. The syntax of these conditions can seem a bit daunting to learn and use. This tutorial aims to help the reader understanding conditions in bash, and provides a comprehensive list of the possibilities. A small amount of general shell knowledge is assumed.

Difficulty: Basic – Medium (more…)

varnish_cache

How to clear Varnish cache for a url

Varnish made some changes in how you clear the cache in Varnish 3. Hence the confusing title. However, it’s simple to clear the cache now, by using the “ban” command.

[:$] varnishadm -T 127.0.0.1:6089 ban.url /index.html

There are a few things you should be aware of. Varnish can run on different ports than 6089, so if you receive the following error: (more…)

ubuntu_logo

Newbie Guide to Installing Linux as a Virtual Machine

This is a guide for installing a virtual copy of Linux and is intended for people who have NO idea what they are doing. Prior to writing this guide, I had absolutely no experience with Linux. As I went on this journey, I took notes so that I may spread my wisdom to others and soften the learning curve a bit. There are a few other guides out there for doing and install like this, but they are all really old and a lot has changed since then. Hopefully this guide will save you a lot of the headache and troubles that I went through.
(more…)

Terminal-01

Grep Tutorial: Searching File Contents

The grep command allows searching the contents of a file from the
command line. It’s a very useful tool to find a particular line in,
say, a log file or a conf file. And because it’s a command line
program, you can combine it with other commands in various ways to
produce powerful results. In this tutorial, you will learn both the
basics and some more advanced applications of grep.

(more…)