How to check the current user in Linux

藏色散人
Release: 2020-05-31 13:40:21
Original
5813 people have browsed it

How to check the current user in Linux

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

How to check the current user in Linux

Recommended: "linux tutorial"

2. Command w

Display according to the title: current time, machine running time, number of logged in users, system load information.

How to check the current user in Linux

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!