mkpasswd

-l #      (length of password, default = 7)
 
                  指定密码的长度,默认是7位数
 
-d #      (min # of digits, default = 2)
 
                  指定密码中数字最少位数,默认是2位
 
-c #      (min # of lowercase chars, default = 2)
 
                  指定密码中小写字母最少位数,默认是2位
 
-C #      (min # of uppercase chars, default = 2)
 
                  指定密码中大写字母最少位数,默认是2位
 
-s #      (min # of special chars, default = 1)
 
                  指定密码中特殊字符最少位数,默认是1位
 
转自http://www.linuxidc.com/Linux/2012-11/73687.htm
原文地址:https://www.cnblogs.com/cuizhipeng/p/4289628.html