telnet从windows PC转到Linux服务器并查看在telnet服务器上登录的用户?您使用什么命令查看我发现的登录on....commands的用户?
发布于 2017-03-29 09:54:16
您不应该再使用telnet,而应该使用ssh进行更安全的远程登录。
您使用什么命令查看哪些用户已登录?我发现的命令不管用
我不知道您找到并尝试了什么,但是您可以使用man -k <keyword>和/或apropos <keyword>搜索系统数据库,查找可用的命令及其简短的描述。这将列出匹配的手册页、手册的部分(有关章节的说明,请参见man man )和说明。
若要找到查找登录用户的适当命令,请尝试
man -k "logged on"
w (1) - Show who is logged on and what they are doing
who (1) - show who is logged on或类似的
apropos "logged in"
last (1) - show listing of last logged in users
lastb [last] (1) - show listing of last logged in users
users (1) - print the user names of users currently logged in to the current host它们都是不同的用户命令,它们对当前登录的用户或过去登录的用户(或在lastb情况下没有登录的用户)提供稍微不同的视图。手册页,即man w或man 1 w将解释如何使用这些命令。
https://unix.stackexchange.com/questions/354532
复制相似问题