温馨提示×

debian deluser适用于哪些版

小樊
49
2026-10-15 11:08:53
栏目: 智能运维

deluser 是 Debian 及其衍生发行版 中用于删除用户和组的命令行工具,主要适用于以下系统:

1. Debian 系列(原生支持)

  • Debian(所有稳定版:如 Debian 11 Bullseye、12 Bookworm 等)
  • Ubuntu(所有版本,包括 LTS 如 20.04/22.04/24.04)
  • Linux Mint(基于 Ubuntu/Debian)
  • Kali Linux(基于 Debian)
  • Raspberry Pi OS(原 Raspbian,基于 Debian)
  • MX Linux、antiX、Pop!_OS、Elementary OS 等 Debian/Ubuntu 衍生版

2. 不适用或不存在 deluser 的系统

  • Red Hat 系列:CentOS、RHEL、Fedora、Rocky Linux、AlmaLinux
    → 使用 userdel 代替
  • Arch Linux / Manjaro
    → 使用 userdel
  • openSUSE / SUSE
    → 使用 userdel
  • Alpine Linux
    → 使用 deluser(注意:Alpine 的 deluser 是 BusyBox 实现,语法不同)

补充说明

  • deluser 是 Perl 脚本,由 adduser 包提供(Debian/Ubuntu 中通常默认安装)
  • 在 Debian/Ubuntu 中,userdel 也存在,但 deluser 更“友好”,支持自动删除家目录、邮件池等

如果你告诉我你用的是哪个具体系统,我可以给你对应的正确删除用户命令。

0 踩