1. userdel 命令说明
userdel:用于删除用户账户,基本信息如下:
Usage: userdel [options] LOGIN
Options:
-f, --force force some actions that would fail otherwise
e.g. removal of user still logged in
or files, even if not owned by the user
-h, --help display this help message and exit
-r, --remove remove home directory and mail spool
-R, --root CHROOT_DIR directory to chroot into
-P, --prefix PREFIX_DIR prefix directory where are located the /etc/* files
-Z, --selinux-user remove any SELinux user mapping for the user
参数如下:
选项 | 作用 |
---|---|
-f | 强制删除用户账户。即使用户当前登录,也会被强制删除。 |
-h</ |