您可以使用以下命令来获得当前用户的用户ID(UID)和组ID(GID):
```
id
执行上述命令后,您将获得形如`uid=1000(username) gid=1000(username) groups=1000(username)`的输出。其中uid即为用户ID,gid即为组ID。
查看详情