w
显示登录者及其进程。 更多信息:https://www.geeksforgeeks.org/w-command-in-linux-with-examples/.
- 显示当前登录的所有用户的信息:
w
- 显示有关特定用户的信息:
w
用户
- 显示信息而不包括标题:
w --no-header
- 显示信息不包括登录、JCPU 和 PCPU 列:
w --short
显示登录者及其进程。 更多信息:https://www.geeksforgeeks.org/w-command-in-linux-with-examples/.
w
w
用户
w --no-header
w --short