Tags » Bash Script

Portscan Using Simple Bash Script

Simple bash script to scan open port of any machine in network without any tool like nmap or any other. 55 more words

Setup Nginx Server

Summarize disk usage in unix

If you run out of space on a remote machine, or even your own Unix based PC, you can investigate where your disk usage problems are coming from with… 56 more words

Scripts

Copy to multiple directories in Unix

You have a large file that needs to be copied to many directories. Rather than repeating:

cp yourfile.txt /your/dir/

Do:

echo /dir/one/ /dir/two/ /dir/three/ | xargs -n 1 cp yourfile.txt
Scripts

Cancel all jobs with Torque

If you use Torque to submit jobs to a cluster, you will need to cancel them sometimes. For a while I was doing:

qdel <job number>
… 26 more words
Scripts

Cancel range of job numbers with Torque

If you use Torque to submit jobs to a cluster, you will need to cancel jobs sometimes. In a previous post I showed how to cancel all jobs, but perhaps you want to leave some running. 43 more words

Scripts

add common commands as aliases

Got this idea from Riinu’s scripting diary. You can add/modify common commands as aliases in your .bashrc file if you are getting tired of typing them all the time… 161 more words

Scripts

Using 'Parallel' in Unix

Installation

Parallel enables you to run basic unix commands on multiple threads at the same time. If it’s not installed on on your linux system, do so with: 172 more words

Scripts