如何在 Linux 上获取当前用户的主组 GID
运行
id_g_example.sh
id -g以获取当前用户主组的 GID。示例:
id_g_output.txt
$ id -g
1000你也可以获取其他用户主组的 GID:
id_g_root_output.txt
$ id -g root
0Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow