Generate Random Password – Red Hat/CentOS

by | Oct 18, 2017 | RHEL / CentOS

There are instances wherein you want to generate random passwords for setting up credentials. There is a very simple random password generator in-built into Linux. Just run the below command.

# cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 24 | head -n24 | head -n1


[[email protected] farooq.ahmed]# cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 24 | head -n24 | head -n1

Related Articles….