Elogix is an incredibly powerful & fully responsive WordPress Theme.
Open
X

Archive for the 'Linux' Category

Expect Debug Mode Enable/Disable

Posted on April 23rd, 2013 · Posted in Blog, Linux, Unix

If you want to debug your expect program, just add the code below at the very top of your program. #!/usr/bin/expect -d Notice the -d at the end of the.. read more

WordPress Media Upload Failure [SOLVED]

Posted on January 5th, 2013 · Posted in Blog, Linux, WordPress

The other day, I’ve been pulling my hair because suddenly, the media upload on WordPress is not working properly on one of my servers. I’m sure this kind of problem.. read more

cp -f not working? check alias

Posted on December 15th, 2012 · Posted in Blog, Linux

Every wonder why somehow in CentOS, you cannot overwrite files with the cp command even with the -f option? The man page clear shows the -f will force the overwriting.. read more

Get IP Host Name in Unix and Windows

Posted on August 10th, 2012 · Posted in Blog, Linux, Unix

Suppose you have the ip address but need to get the hostname (ip name), you can use the commands below. Windows Syntax nbtstat -a [ip address]

Equivalent of grep in DOS/Windows

Posted on July 31st, 2012 · Posted in Blog, Linux, Unix

I hardly know scripting commands in DOS/Windows Console so I struggle everytime I encounter situations when I need to use them. Case in point is searching for text in files… read more

Count Occurrence of Character in String Unix Shell

Posted on May 29th, 2012 · Posted in Blog, Linux, Unix

How do we exactly count the occurrence of a particular character in a string in bash scripting? Well, there’s quite a number of ways of doing this. Here’s the simplest.. read more

Suppress Error Message of cp (copy)

Posted on May 4th, 2012 · Posted in Blog, Linux, Unix

There are times when you don’t need to know if the command you fired threw an error or not. That’s exactly what I needed in one of the systems I.. read more

Remove WordPress Maintenance Mode

Posted on March 4th, 2012 · Posted in Blog, Linux, WordPress

Sometimes, upgrades fail at some point for some reason. That will leave your site in maintenance mode and unusable. That’s the “Briefly Unavailable for Scheduled Maintenance” that we see while.. read more

How to Get The First File in Unix

Posted on December 13th, 2011 · Posted in Blog, Linux, Unix

In case you are looking files using ls or find command and only want to get the first file found, the command would be like. ls -l /any/path/filename*|sed -e ‘s///,/g’|awk.. read more

SpotVPS First Impressions

Posted on November 30th, 2011 · Posted in Blog, Hosting, Linux, MySQL, NGINX, PHP, Unix

After the unfortunate incident last week with NordicVPS, I decided to look for a new VPS host. As usual, I went to lowendbox and get the reviews in webhostingtalk. It’s.. read more