Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the copy-the-code domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pb-seo-friendly-images domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the johannes domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/pcx3.com/wp-includes/functions.php on line 6121
4 commands to identify a logged user account in Linux - PC✗3
4 commands to identify a logged user account in Linux

4 commands to identify a logged user account in Linux

Into this tutorial we will learn how to identify a user account or who is logged into system with commands like who or who am i.

If multiple users use a single system, then everyone may have their own user account. At this time, it will be helpful to know who is logged in and the user account details.

whoami

To know about the system’s username use the following command.

whoami
image 10 - 4 commands to identify a logged user account in Linux

Check into the above table , ‘stefan’ is our system username.


who

To check the information about the users logged on to the system use the following command.

who
image 11 - 4 commands to identify a logged user account in Linux

w

Using this command we can see about the users who are logged in and what are they doing.

image 12 - 4 commands to identify a logged user account in Linux

id

This command used for to check your user id, primary group id, and a list of groups that belongs to that user.

image 13 - 4 commands to identify a logged user account in Linux
whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.