Linux self-study journey-basic commands (who command of system traces)

Linux self-study tour-basic commands (see who command of the user who is logging in)


Preface

1. In the previous section, we described the command w to view the information of the user who is logging in. If you haven't read it, you can click the link below to view: w command

2. In this section, we describe another command who looks at the information of the user who is logging in


Tip: The following is the content of this article

One, who command format

  • Command name: who
  • Location: /usr/bin/who
  • Execution authority: all users
  • Function description: view the user who is logging in
命令格式
[root@web ~]# who

Second, who use

[root@web ~]# who
root     pts/0        2021-03-27 21:55 (192.168.137.1)
(登录用户)(登录终端)	(登录时间)		(登录IP)

Like w, who can display the user who is logging in, but who displays it is simpler.


to sum up

1. In this section, we mainly learned to use who to directly view the users who are logging in. You can use who or w according to your actual situation.

This is Jiehua, see you next time!

Guess you like

Origin blog.csdn.net/qq313088385/article/details/115272766