Tag: rm

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< […]

How to Delete Files Older Than x Days on Linux

The find utility on linux allows you to pass in a bunch of interesting arguments, including one to execute another command on each file. We’ll use this in order to figure out what files are older than a certain number of days, and then use the rm command to delete […]

rpmdb: unable to join the environment

If your rpm database gets corrupt, you receive the following message on working on packages using rpm: rpmdb: unable to join the environment rpmdb: write: 0xbf91a7d0, 8192: Invalid argument error: db4 error(22) from dbenv->open: Invalid argument error: cannot open Packages index You can try out any of the following two […]

UNIX / Linux: Deleting Multiple Files In Bulk

How do delete multiple files in bulk (say all *.bak file stored in /netapp/ and its subdirectory) under Linux / UNIX operating systems? You can use the find command as follows to find and delete file in bulk: find /path/to/delete -type f -iname “fileType” -delete OR find /path/to/delete -type f […]

Intrusion Detection With BASE And Snort – Part2

LIBPCAP Go to: http://www.tcpdump.org/ and select a download link for Libpcap (at time of writing this it is libpcap-0.9.4.tar.gz) cd back to the snorttemp map: cd /root/snorttemp and download the libpcap-0.9.4.tar.gz file: wget http://www.tcpdump.org/release/libpcap-0.9.4.tar.gz Untar the file: tar -xvzf libpcap-0.9.4.tar.gz Remove the file: rm libpcap-0.9.4.tar.gz BASE (Basic Analysis and Security […]

Linux or Unix find and remove files with one find command

Q. How do I find and delete files under Linux / UNIX operating systems? A. Some time it is necessary to find out files and remove them. However, rm command does not support search criteria. However, with find command you can search for files in a directory and remove them […]

ConfigServer Explorer (cse)

This is an exclusive! and free! add-on product for cPanel/WHM. The product provides you with a full featured Filesystem explorer and a Virtual Console to use within your web browser in WHM. It gives you root access from the top level of your disks and allows you to enter non-interactive […]