Posts by versluis

How to use functions in a BASH shell script

Posted on Dec 1, 2016

BASH can deal with simple functions, and they are defined like this: # this defines the function function testing {     echo "Hi there!" } # this calls our function testing As far as I know, BASH...

Learn More

How to use variables in a BASH shell script

Posted on Nov 30, 2016

Here’s how to use simple variables in BASH shell scripts. It appears there are no data types, and everything’s a string (correct me if I’m wrong). We can define a variable by first setting...

Learn More

How to install PHP from source on CentOS

Posted on Nov 30, 2016

I have recently installed PHP 7 from source on a fresh minimal CentOS 7 box. No previous version of PHP was installed, and I thought I’d give 7 a spin. There were a few pitfalls I hadn’t come...

Learn More