userdel [-r] login
userdel 命 令 修 改 系 统 帐 号 档 删 除 所 有 login 会 参 考 的 部 份 。 使 用 者 名 称 必 须是 存 在 的 。 The options which apply to the userdel command are:
/etc/passwd - 使 用 者 帐 号 资 料
/etc/shadow - 使 用 者 帐 号 资 讯 加 密
/etc/group - 群 组 资 讯
0 - success
1 - can‘t update password file
2 -
bad command syntax
6 - specified user doesn‘t exist
8 - user currently
logged in
10 - can‘t update group file
12 - can‘t remove home directory
原文:https://www.cnblogs.com/fanweisheng/p/11102182.html