要刪除用戶和用戶組,您可以使用以下命令:
userdel username
將"username"替換為要刪除的用戶名。
groupdel groupname
將"groupname"替換為要刪除的用戶組的名稱。
請注意,在刪除用戶或用戶組之前,請確保其不再需要,并且沒有任何相關的文件或進程。