December 2018
Beginner
320 pages
8h 57m
English
Since Linux is a multiuser OS, we can have multiple users logged in at the same time. The following table lists the different commands that are used to find information about the logged-in user and other information associated with users:
|
Command |
Description |
|
$ who |
Display currently logged in users |
|
$ w |
Display detailed information of currently logged in users |
|
$ whoami |
Display current user |
|
$ id |
Display information about current logged in user (such as User ID, primary group and secondary group, and SELinux context) |
|
$ id <username> |
Display information about the username passed as the first argument to the id command |
Examples of the id command, who command and the w command ...
Read now
Unlock full access