摘要: #!/bin/bash echo "创建成功的用户" > /root/user_name read -ep "请输入要创建的用户:" num for i in `seq 1 $num` do pw=`cat /dev/urandom | head -1|md5sum |head -c 5` id wg$i > /dev/null 2>&1 if [ $? -eq 0 ];then while tr 阅读全文
posted @ 2019-09-27 16:28 一纸情书べ 阅读(101) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash for i in `seq 1 250` do ping -c 1 192.168.146.$i > /dev/null if [ $? -eq 0 ];then echo "192.168.146.$i存活" else echo "192.168.146.$i不存活" >> /root/ip.log fi done 阅读全文
posted @ 2019-09-27 14:05 一纸情书べ 阅读(409) 评论(1) 推荐(0) 编辑