Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Generate random password from CLI  (Read 2491 times)

0 Members and 1 Guest are viewing this topic.

Vinil

  • Guest
Generate random password from CLI
« on: November 21, 2013, 04:17:54 pm »
We can generate random passwords from CLI containing containing  a-z, A-Z and 0-9. For example, to generate a random password of 10 character length, type the following:-


Quote
egrep -ioam1 '[a-z0-9]{10}' /dev/urandom


sample o/p:

~$] egrep -ioam1 '[a-z0-9]{10}' /dev/urandom
6PTȉFqoj2U