48

linux运用命令批量传创建用户-linux运维菜鸟

 6 years ago
source link: http://blog.51cto.com/lzhnb/2084362
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
第一种方法:[root@oldboy~]#echostu{01..10}|tr"""\n"|sed-r's#(.)#useradd\1;pass=$((RANDOM+10000000));echo"$pass"|passwd--stdin\1;echo-e"\1\techo"$pass""&

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK