Author: <span class="vcard">g33kadmin</span>

Allmyapps

Allmyapps makes software installation a breeze. No matter how many applications you need, 1 click is all you need to have all your favorite applications installed on your PC.Allmyapps also keeps your applications safe! Would you need to reinstall your system, Allmyapps takes care of reinstalling all your favorite applications in the blink of an…


Regexxer

Simplify Regular Expression Search/Replace with Regexxer on Linux If you are tired of hacking together commands at the terminal or having to open a giant bloated IDE just to perform search and replace across a number of files, then Regexxer is the tool for you. Reader Sergio turned us on to this great application geared…


Apachetop

Monitor Your Website in Real-Time with Apachetop As a webmaster, I’ve often wanted to be able to see real-time hits as they arrive. Sure, Google Analytics is a wonderful package for looking at trends over time, but there’s a delay of a few hours there, and you really can’t see data like requests per second…


Backup MySQL Database to a file

Backup MySQL Database to a file Backing up your database is a very important system administration task, and should generally be run from a cron job at scheduled intervals. We will use the mysqldump utility included with mysql to dump the contents of the database to a text file that can be easily re-imported. Syntax:…


Sudo previous command !!

Add Sudo to Your Last Bash Command With “!!” Syntax How often have you typed in a command in your linux shell, and then realized that you forgot to type sudo, so you end up with an error or editing the dreaded read-only file? This happens to me much more than I’d like to admit,…


Live log view

A “live” view of a logfile on Linux This approach works for any linux operating system, including Ubuntu, and is probably most often used in conjunction with web development work. tail -f /path/thefile.log This will give you a scrolling view of the logfile. As new lines are added to the end, they will show up…


Find modified files

Find Files that are Modified Today (or Since Certain Time Ago) in Unix To find all files that was modified since a specific time ago (i.e an hour ago, a day ago, 24 hours ago, a weeks ago and so on) in Unix environment, the find command will come in handy. The command syntax is:…


Logrotate domalogs

Adding a logrotate script to clean up apache will normally take care of this problem. The default logrotate script is either /etc/logrotate.d/apache or /etc/logrotate.d/httpd. vim /etc/logrotate.d/httpd or apache insert the code below: /usr/local/apache/logs/*log /usr/local/apache/domlogs/*.com /usr/local/apache/domlogs/*.net /usr/local/apache/domlogs/*.org /usr/local/apache/domlogs/*.edu /usr/local/apache/domlogs/*.it /usr/local/apache/domlogs/*.dk /usr/local/apache/domlogs/*.de /usr/local/apache/domlogs/*.nz /usr/local/apache/domlogs/*.si /usr/local/apache/domlogs/*.in /usr/local/apache/domlogs/*.ie /usr/local/apache/domlogs/*.fr /usr/local/apache/domlogs/*.es /usr/local/apache/domlogs/*.br /usr/local/apache/domlogs/*.ar /usr/local/apache/domlogs/*.jp /usr/local/apache/domlogs/*.uk /usr/local/apache/domlogs/*.ru /usr/local/apache/domlogs/*.at /usr/local/apache/domlogs/*.nl /usr/local/apache/domlogs/*.us /usr/local/apache/domlogs/*.gov…


How to Disable ping

How to Disable ping to server? To disable ping echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all To enable ping echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all


How to Kill Zombie Process

How to Kill Zombie Process in server?? This command will be useful to kill php zombie process. ps -ef | grep mailnull | grep -v grep | awk ‘{print “kill -9″, $2}’ | sh replace mailnull with particular proces name which has zombie