[root@hf-01 ~]# mkpasswd 它会随机生成一个大小写、数字、符号的字符串,长度是 九位 UgftrS^57
[root@hf-01 ~]# mkpasswd -l 12 生成了长度为12位的字符串 9ue}dxdor2MM
[root@hf-01 ~]# mkpasswd -l 12 -s 3 xx[jbMk<9'M9 [root@hf-01 ~]# mkpasswd -l 12 -s 0 bevtic7Fu7Kh
在写脚本中常常会用到mkpasswd命令,再生成后,还需记录到文本文档中去