Redirection and Pipes on Linux

Redirection: With the > symbol you can forward the output of a command to a file (output redirection), with the < symbol you can use a file as input for a command (input redirection). Pipe: By using a pipe symbol, | you can also redirect the output similar to the < or >. With a…


List subdirectories with owner & permissions and paths

This bash one liner should give the desired results; find /var ! -user root -type d -ls modify as needed


Top 10 WordPress hacks for 2009

Top WordPress hacks of 2009 from http://www.catswhocode.com/blog/top-wordpress-hacks-of-2009 2009 has been a very prolific year for WordPress hacks. In this article, I’ll show you the most useful hacks I came across during the whole year. Enjoy! Monetizing your old blog posts Let’s start this post with a nice hack dedicated to help you make more money…


chkservd missing from CPanel / Centos

On a fresh Centos server with CPanel installed it seems that chkservd was not running. chkservd is a little CPanel utility that allows you to check from WHM what applications it will monitor, and in case there is a problem with any of those services it will restart it and send a notification to the…


Add Services to Chkservd

Chkservd is the service in cPanel that checks to make sure that services are running, then restarts them if necessary. It’s also responsible for the ‘Service Manager’ section in cPanel, which is an interface where added services can be easily checked on and off. To add a new service, create a line in /etc/chkserv.d/chkservd.conf in…


Flush memcached using BASH

If you store application data in memcache, you may want to invalidate it once you deploy a new version to avoid corruption or strange results. There are several ways to do this but the BASH way is; Flush memcache in BASH Just add this to your deploy script: echo “flush_all” | /bin/netcat -q 2 127.0.0.1…


Linux Standard Directory Structure

Directory Description / Root directory—the starting point of the directory tree. /bin Essential binary files, such as commands that are needed by both the system administrator and normal users. Usually also contains the shells, such as Bash. /boot Static files of the boot loader. /dev Files needed to access host-specific devices. /etc Host-specific system configuration…


Free SoftMaker Office 2008

SoftMaker is giving away the 2008 versions of their Office suites for charity until the end of this month. This is a commercial verison of Open Office. It is lightweight, powerful and fast. MS file conversions are much better than OOo. More details can be found HERE. Get it quick and help them out!


Auto reboot after kernel panic

When a kernel encounters certain errors it calls the “panic” function which results from a unrecoverable error. This panic results in LKCD (Linux Kernel Crash Dump) initiating a kernel dump where kernel memory is copied out to the pre-designated dump area. The dump device is configured as primary swap by default. The kernel is not…


Linux Alternatives to Popular Apps

Linux is quickly gaining popularity, but there are still many users afraid to convert as they are not familiar with the applications. ANIMATION SOFTWARE Blender 3D: Blender 3D is a high-quality, robust animation program with a steep learning curve and the ability to create commercial-quality 3D animations. The software is completely free, with extensive documentation…