#!/bin/bash # Under RedHat / Centos if [ $# -gt 0 ] then MIN=$1 else MIN=8 fi DEL=`expr $RANDOM % 5` LEN=`expr $MIN + $DEL` cat /dev/urandom | tr -dc "a-zA-Z0-9@#*=[]" | dd bs=$LEN count=1 2>/dev/null echo;
Linux Random Password Generator With Bash Script
Previous post: How to install IPTables on RedHat / Centos Linux
Next post: Display motherboard information on Linux