Category: bash script

Checking multiple hosts available through the network in once on Linux 0

Checking multiple hosts available through the network in once on Linux

I have been using this small script to check if multiple host would have been online.

Change file ‘s name and extension in uppercase on Linux 0

Change file ‘s name and extension in uppercase on Linux

Having a huge amount of files, I had to change the files in uppercase. Just a quick command line/script that at change in uppercase the file’s name and extension based on the extension given.

Check LDAP avaibility regulary based from Linux 0

Check LDAP avaibility regulary based from Linux

in some situation I had to check/validate if some services/protocol were still available from a remote machine.

Monitor http (80) connections every 30 seconds 0

Monitor http (80) connections every 30 seconds

#!/bin/sh while true; do netstat -n |grep ‘:80’ |grep ‘EST’ | wc -l; sleep 30; done;

Find old/oldest file from the tmp on Linux 0

Find old/oldest file from the tmp on Linux

find /tmp/ -type f -mtime +1 -exec rm {} \; Delete all files having ‘jpg’ as extension within a folder and sub-folder older than 15 days old. find . -mtime +14 -type f -name...

Menu