$ id
現在のユーザーID とグループID を表示するには、id コマンドを実行します。
以下に、ユーザー taro が id コマンドを実行した例を示します。
$ id uid=500(taro) gid=500(taro) 所属グループ=500(taro),502(project1)