linux系统产生随机数的几种方法 By duncan21Posted on 2015 年 5 月 23 日Posted in ShellTagged 随机数 方法一:通过系统的环境变量$RANDOM [root@M1-Server ~]# echo $RANDOM &nb[……] 阅读全文 Read More
批量创建10个系统账号teddy01-teddy10并设置密码(密码为随机9位字符串) By duncan21Posted on 2015 年 5 月 23 日2015 年 5 月 24 日Posted in ShellTagged 批量创建系统账号 脚本: [root@M1-Server ~]# cat useradd.sh #!/bin/bash . /etc/init.d/[……] 阅读全文 Read More
利用shell打印9*9乘法表 By duncan21Posted on 2015 年 5 月 23 日Posted in ShellTagged 9*9乘法表 [root@NFS ~]# cat 9\*9.sh #!/bin/bash for ((i=1;i<=9;i++)) [……] 阅读全文 Read More