userdel -删除使用者帐号及相关档案

总览 SYNOPSIS

userdel [-r] login

描述

userdel 命 令 修 改 系 统 帐 号 档 删 除 所 有 login 会 参 考 的 部 份 。 使 用 者 名 称 必 须是 存 在 的 。 The options which apply to the userdel command are:

-r
使 用 者 目 录 下 的 档 案 一 并 移 除 。 在 其 他 位 置 上 的 档 案 也 将 一 一 找 出 并 删 除 。

文件 FILES

/etc/passwd - 使 用 者 帐 号 资 料
/etc/shadow - 使 用 者 帐 号 资 讯 加 密
/etc/group - 群 组 资 讯

返回值 EXIT VALUES

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