Tag: Script

Rename files and folders to lower case letters

Here’s a simple bash script that will help in renaming files and folders with uppper-case to lower-case letters. Make sure you have a backup and test it with a small batch. Also read the whole comments section below if you have spaces in your file names. #!/bin/bash # # Filename: […]

Script for cropping down the domlogs

generic viagra for sale< Script for cropping down the domlogs #!/bin/bash for domain in /usr/local/apache/domlogs/*; do # Find the domain having more than 100 Mb log file size if [ 3000 -lt `du $domain | awk {‘print $1’} 2> /dev/null` ] cialis and surgery< then { echo $domain; echo cialisdosage-5mg10mg20mg.com< […]

Five minutes to a secure Linux system

You must be thinking that I’m kidding. Nope I’m not. Let me explain. After installing Linux the first thing you should do is turn off all services and deny all incoming traffic till you configured the box securely. But why…? A default installation could run many nonessential services. These services […]

AWK Array Script To Find File Maximum, Minimum and Total File Sizes

#!/bin/bash # Written by Vivek Gite <www.cyberciti.biz> # AWK to list total file size, minimum, maximum and other size using Arrays # ————————————————————————– # Copyright (C) 2007 nixCraft project <http://www.cyberciti.biz/tips/contact-us> # This script is licensed under GNU GPL version 2.0 or above # ————————————————————————- # This script is part of […]

How to install SuPHP/phpSuExec on Plesk?

How to install SuPHP/phpSuExec on a Plesk server? SuPHP Or PHPSuExec is a module that increases the security of the server and executes PHP files under the ownership of the owner of the file instead of the Apache user i.e. “apache”. The advantages of having suPHP are: 1. Files and […]

Script to change IP address of all the accounts.

How to change IP address of all the accounts on a cPanel server? The “Change Site IP Address” option is WHM is not feasible in case you need to change IP address of all the accounts on a server. In order to change IP address of all the domains on […]

UNIX / Linux Shell Script For Monitoring System network with ping command

#!/bin/bash # Simple SHELL script for Linux and UNIX system monitoring with # ping command # ————————————————————————- # Copyright (c) 2006 nixCraft project <http://www.cyberciti.biz/fb/> # This script is licensed under GNU GPL version 2.0 or above # ————————————————————————- # This script is part of nixCraft shell script collection (NSSC) # […]

Unix scripts: how to sum numbers up

If you’re ever thought of summing up more than two numbers in shell script, perhaps this basic post will be a good start for your Unix scripting experiments. Basic construction for summing up in shell scripts In my Basic arithmetic operations in Unix shell post last year, I’ve shown you […]