Shell Script – The Importance of Adding Quotes to Variable

June 21, 2013

Example 1 :


TITLE="The Magic Land"
if [ $TITLE == "The Magic Ocean" ]; then
   echo "OK"

Add and Remove User From a Group in Linux

June 16, 2013

Add existing user mike to group www-data

gpasswd -a mike www-data

The TreeSize – Find Which File Consuming Most Disk Space

June 14, 2013

A company named Jam Software from Germany has created a software to visualize which file consuming most disk space. This free tool is about 2.4 MB in size and can be download as portable zip file. The scanning is very fast for the entire C: drive, I finish it less than 10 seconds! ( I’m using ssd drive, 238 GB total).

I recommend to try if you have issue with low disk space.

Clone a Git Repository Using Private Key on Ubuntu

June 14, 2013

Have you ever received this error message?

$ git clone
Cloning into 'web-app'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

Most likely you need to add private key to the ssh authentication agent. Here is how to do it.

Method #1 (Temporary, need to add for every restart)

Make sure ssh-agent is running

$ ps -e | grep sh-agent
 1525 ?        00:00:00 ssh-agent

Convert Multiple PNG Images Into a Single Icon File

June 13, 2013

Download and extract ImageMagick.

Run this command

convert.exe image-16.png image-32.png image-48.png image-64.png image-128.png my-icon.ico