Linux系统随机密码生成命令

# tr -dc A-Za-z0-9_ < /dev/urandom | head -c 30 | xargs
# tr -dc A-Za-z0-9_  < /dev/Random | md5sum | xargs  | cut -c 1-10


# echo $Random | md5sum  | cut -c 1-10
# echo $urandom | md5sum  | cut -c 1-10
# echo $Random | md5sum | xargs  | cut -c 1-10


猜你喜欢

转载自blog.51cto.com/zhanx/2319680