14.7 id, whoami, groups: Inspecting Current Identity
Right, let’s get the existential stuff out of the way. Before you can start bossing the system around, you need to answer the most fundamental question in a multi-user environment: “Who am I?” and “What am I allowed to do?” It sounds philosophical, but the answers are brutally practical. You’re not a beautiful and unique snowflake to the kernel; you’re just a number. A user ID (UID). Let’s meet the tools that translate that number back into a name and tell you what teams you’re on.