Bash linux find
0

Linux is a very complex operating system and provides a lot of usefull tools and commands. Just a few simple linux console commands to find files in Linux OS (regular search or recursive search): Find files recursively #print all files in a directory, recursively find ./ -type f -follow -print Search for a string…

Perl spamassassin perl script
0

A simple yet very useful perl script to generate rules for spamassasin (linux spam filter) in order to create spam rules to block certain types of emails based on “email body content”. The script was initially created by darxus [at] chaosreigns [dot] com. I have just adapted it a little…

Mac OSX gns3 cisco virtual router
11

Recently I started to play a little bit with GNS3. I managed quite easy to create a virtual cisco router on GNS3 and connect from console to that router and do the initial basic setup of the router. And then it hit me! Is there any way to…

Perl perl script
0

If you want to monitor the services running on your linux machine you have a lot of options. But if you don’t want to install any additional software or applications, you can do it with a very simple perl script. (you need MIME::Lite to be installed before you…

Linux linux bash prompt
0

If you are unhappy with the standard linux prompt then there is a simple way to make your linux prompt to look awesome and also provide some useful infos. The prompt can be used on all linux distributions. I have tried with linux CentOS 6.6 If you want to…

Linux linux aliases bash
0

If you are tired of always typing and typing on your linux machine in order to do certain taks, then you might need to define some aliases. One of the first things that I’m doing after installing a linux, I define some aliases that I got used with…

Apache mod_evasive apache
0

For an extra protection for your apache web server you cand install the “mod evasive” apache module. How to do it? Simple, just follow the steps below: Download it from http://club3d.ro/mod_evasive_1.10.1.tar.gz Unpack and compile module tar zxvf mod_evasive_1.10.1.tar.gz; cd mod_evasive; /usr/sbin/apxs -i -a -c mod_evasive20.c Your module has been…

Databases mysqldump
0

If you need to dump all mysql users created on your linux machine you can do it quite easy, using a simple bash script. Create a new bash script as follows:

 Save the file, chmod +x dump_sqlusers.sh. Then just execute the script! It will dump all your…