Exim Commands
REMOVE MAILS BY ID
/usr/sbin/exim -v -Mrm (MAIL ID HERE)
LIST QUEDED MAILS
/usr/sbin/exim -bp
OUTPUT NUMBER OF QUEUED MAILS
/usr/sbin/exim -bpc
DELETE FROZEN MAILS
/usr/sbin/exim -bp | awk '$6~"frozen" { print $3 }' | xargs exim -Mrm
DELIVER FORCEFULLY EMAILS
/usr/sbin/exim -qff -v -C /etc/exim.conf &
FREEZE MAILS FROM SENDER
/usr/sbin/exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mf
REMOVE MAILS FROM SENDER
/usr/sbin/exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mrm
Prevent DDOS Attack
(D)DoS-Deflate script monitors and tracks the IP addresses that are sending and establishing large amount of TCP network connections. When it detects number of connections from a single IP that exceeds certain preset limit, the script automatically uses APF or IPTABLES to ban and block the IPs.
Installation:
wget http://www.inetbase.com/scripts/ddos/install.sh
chmod 0700 install.sh
./install.sh
UnInstall:
wget http://www.inetbase.com/scripts/ddos/uninstall.ddos
chmod 0700 uninstall.ddos
./uninstall.ddos
Free Clear Purge System memory ( RAM ) in Linux.
Its best to leave the memory management to linus kernel but if you must clear up some memory then this is how you do it.
Execute this command as root:
sync; echo 3 > /proc/sys/vm/drop_caches
What does it do ?
sync; will write all the unwritten data to disk so that nothing is lost.
echo 3 > /proc/sys/vm/drop_caches; will drop all the cached data from memory.
WordPress vs vBulletin
It will be like comparing apples with oranges as one is a Blog Script and other is Forum. But both the scripts are based on similar technologies ( php/mysql) and there are some similar features.
WordPress’ look and feel is more in liaison with 2008/2009 technologies, vbulletin comparably looks outdated.
The installation, up-gradation, out of the box ‘SEO’, performance, adding plugins , changing skins and overall look and feel is much better in wordpress, pity wordpress doesn’t have a forum solution.
Putty Commands
ls – to list files in a directory
syntax: ls
dir – same as ls
syntax: dir
cd – change directory
syntax: cd /home
cp – copy a file
syntax: cp file.zip /home
mv – move a file (also used to rename files)
syntax to move : file.zip /home
syntax to rename : oldfile.zip newfile.zip
rm – remove a file
syntax to remove one file : rm file.zip
syntax to remove all zip files : rm *.zip
syntax to remove all files : rm -rf *
syntax to remove a directory : rm -rf directoryname
mkdir – make directory
syntax: mkdir newdirectory