From the course: LPI Linux Essentials (010-160) Cert Prep

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Using account tools

Using account tools - Linux Tutorial

From the course: LPI Linux Essentials (010-160) Cert Prep

Start my 1-month free trial

Using account tools

- [Man] Let's take a look at some commands that can be used to learn about the users and groups on a Linux system. Most notably, we have the "whoami" and the "ID" utilities, which can tell a user about their own identity and the "who" and the "w" utilities, which can give information about who is currently using the computer. If the user has multiple accounts and they can't remember which one they're logged in as, well, that's when you use the "whoami" command. To do this, just type in "whoami" and hit enter at the command line and it will display the current user ID. Typing "whoami" in the prompt will display a currently logged in username and therefore, you'll know who you are. If you need more information, that's where the "ID" utility can be used. Typing "ID" will usually show the current you ID for the username. It'll also give you the G ID and all of the group's memberships for that user. The ID command displays…

Contents