Linux 系统中查看用户 ID 与 GID:4 条命令实测
id、whoami、getent passwd 和 /etc/passwd 四条命令覆盖查看自己和他人的 UID/GID 全场景,均经 WSL2 实测。
huyuanwen
2026-11-02