在Linux系統中,可以使用以下命令列出所有用戶組:
cat /etc/group
getent group
cut -d: -f1 /etc/group
以上命令執行后會列出所有用戶組的名稱和其他相關信息。