Let's get some more user information with the id command. This is a cool way to see what groups you belong to.
In Linux, users are organized into groups. These groups determine the permissions and access rights a user has.
Type this command and press Enter:
id
You'll see something like:
uid=5000(labex) gid=5000(labex) groups=5000(labex),27(sudo),121(ssl-cert),5002(public)
Don't worry too much about the numbers right now. Here's the breakdown:
uid: Your User ID (a unique numerical identifier).
gid: Your primary Group ID.
groups: All the groups you are a member of.
You can also use id to look up other users. Try:
id root
You'll see:
uid=0(root) gid=0(root) groups=0(root)
root is the superuser – like the administrator of the system!
Don't be concerned if this seems a bit complex right now. You'll learn more about users and groups as you progress. Remember, practice makes perfect. The more you use these commands in LabEx, the more comfortable you'll become with them!
Click Continue to move on.