linux下实用的快速随机生成复杂密码
linux下实用的快速随机生成复杂密码
[root@test.db-audit.1 ~]# </dev/urandom tr -dc '1234567890!@#$%abcdefghigklmnopqrstuvwxyzABCDEFGHIGKLMNOPQRSTUVWXYZ' | head -c20; echo lG01IX%sH!@Z%hbOw3Wf [root@test.db-audit.1 ~]# cat >>/root/.bashrc <<"EOF" # 随机生成复杂密码 alias generate_password="</dev/urandom tr -dc '1234567890!@#$%abcdefghigklmnopqrstuvwxyzABCDEFGHIGKLMNOPQRSTUVWXYZ' | head -c20; echo" EOF source /root/.bash_profile [root@test.db-audit.1 ~]# generate_password asLTG%ZO6vkkBgvFhosF [root@test.db-audit.1 ~]#