[root@localhost ~]# useradd -u 1001 -g 1001 -G jim -c 'tom and jim' -d /home/tom -s /bin/bash tom
[root@localhost ~]# id tom
uid=1001(tom) gid=1001(jim) 组=1001(jim)
用户删除命令userdel
命令:userdel [option] USERNAME
-r 删除用户的同时删除其家目录(userdel默认不会删除其家目录)
示例:
[root@localhost ~]# userdel tim
[root@localhost ~]# id tim
id: tim: no such user
[root@localhost ~]# ls /home/
root1 tim tom
[root@localhost ~]# userdel -r lida
[root&#