Home >Operation and Maintenance >Linux Operation and Maintenance >How to check the current user in Linux

How to check the current user in Linux

藏色散人
藏色散人Original
2020-05-31 13:40:216076browse

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!

Statement:
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 admin@php.cn