[root@vm102 ~]$ seq -f “str%02g” 0 10 | awk ‘{print “userdel -r " KaTeX parse error: Expected 'EOF', got '}' at position 5: 0";"}̲' | /bin/bash […
[root@vm102 ~]$ seq -f “str%02g” 0 10 | awk '{print “useradd " $0”;echo 11111 | passwd --stdin " $0”;"}’ | /bin/bash
Changing password for user str00.
passwd: all authentication tokens updated successfully.
Changing password for user str01.
passwd: all authentication tokens updated successfully.
Changing password for user str02.
passwd: all authentication tokens updated successfully.
Changing password for user str03.
passwd: all authentication tokens updated successfully.
Changing password for user str04.
passwd: all authentication tokens updated successfully.
Changing password for user str05.
passwd: all authentication tokens updated successfully.
Changing password for user str06.
passwd: all authentication tokens updated successfully.
Changing password for user str07.
passwd: all authentication tokens updated successfully.
Changing password for user str08.
passwd: all authentication tokens updated successfully.
Changing password for user str09.
passwd: all authentication tokens updated successfully.
Changing password for user str10.
passwd: all authentication tokens updated successfully.
快速批量创建用户的命令
最新推荐文章于 2023-07-14 10:42:04 发布