cat /dev/urandom | tr -dc '0-9a-zA-Z' | fold -w 8 | head -1
#/dev/urandom会随机生成字符串
#tr -dc '0-9a-zA-Z' 取0-Z之间的字符
#fold -w 8 指定取8位数密码
cat /dev/urandom | tr -dc '0-9a-zA-Z' | fold -w 8 | head -1
#/dev/urandom会随机生成字符串
#tr -dc '0-9a-zA-Z' 取0-Z之间的字符
#fold -w 8 指定取8位数密码
© 本文著作权归作者所有,转载前请务必署名
docker常用命令
以root用户运行cat /etc/passwd | cut -f 1 -d : |xargs -I {} crontab -l -u {}
apiVersion: v1kind: PersistentVolumemetadata:name: pv01spec:capacity:storage: 5G
curl -L https://github.com/ahmetb/kubectx/releases/download/v0.9.1/kubens -o /bi
awk '{ip[$1]+=1;} END {for(i in ip){print ip[i]" "i;}}' /var/log/httpd