How to check the current user in Linux?
Use the who command to view the currently logged in user, and use the w command to view all logged in user information.
1. The command who
displays the current logged in user, login time and login IP address. Refer to the picture below
Recommended: "linux tutorial"
2. Command w
Display according to the title: current time, machine running time, number of logged in users, system load information.
The above is the detailed content of How to check the current user in Linux. For more information, please follow other related articles on the PHP Chinese website!