Generate random password under linux command line

 

</dev/urandom tr -dc '!@#$%_A-Z-a-z-0-9' | head -c32; echo ""

 

 

expr substr $(cat /proc/sys/kernel/random/uuid) 1 8

 

 

refer to:

Generate random password under linux command line

http://blog.netoearth.com/html/201009/linux%E5%91%BD%E4%BB%A4%E8%A1%8C%E4%B8%8B%E7%94%9F%E6%88%90%E9%9A%8F%E6%9C%BA%E5%AF%86%E7%A0%81.htm

Linux shell implements multiple methods of random numbers: http://www.cnblogs.com/chengmo/archive/2010/10/23/1858879.html;

Bash shell string manipulation: http://www.jb51.net/article/50435.htm;

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327018771&siteId=291194637