{"id":473,"date":"2019-04-11T23:33:41","date_gmt":"2019-04-11T15:33:41","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=473"},"modified":"2022-05-25T20:13:52","modified_gmt":"2022-05-25T12:13:52","slug":"who","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/who","title":{"rendered":"who\u547d\u4ee4 – \u67e5\u770b\u5f53\u524d\u767b\u5f55\u7528\u6237\u4fe1\u606f"},"content":{"rendered":"\n

who\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7528\u4e8e\u663e\u793a\u5f53\u524d\u767b\u5f55\u7528\u6237\u4fe1\u606f\uff0c\u5305\u542b\u767b\u5f55\u7684\u7528\u6237\u540d\u3001\u7ec8\u7aef\u3001\u65e5\u671f\u65f6\u95f4\u3001\u8fdb\u7a0b\u7b49\u4fe1\u606f\uff0c\u5e2e\u52a9\u8fd0\u7ef4\u4eba\u5458\u4e86\u89e3\u5f53\u524d\u7cfb\u7edf\u7684\u767b\u5165\u7528\u6237\u60c5\u51b5\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a <\/strong>who [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-a<\/td>\u5168\u9762\u4fe1\u606f<\/td><\/tr>
-b<\/td>\u7cfb\u7edf\u6700\u8fd1\u542f\u52a8\u65f6\u95f4<\/td><\/tr>
-d<\/td>\u6b7b\u6389\u7684\u8fdb\u7a0b<\/td><\/tr>
-l<\/td>\u7cfb\u7edf\u767b\u5f55\u8fdb\u7a0b<\/td><\/tr>
-H<\/td>\u5e26\u6709\u5217\u6807\u9898\u6253\u5370\u7528\u6237\u540d\uff0c\u7ec8\u7aef\u548c\u65f6\u95f4<\/td><\/tr>
-t<\/td>\u7cfb\u7edf\u4e0a\u6b21\u9501\u5b9a\u65f6\u95f4<\/td><\/tr>
-u<\/td>\u5df2\u767b\u5f55\u7528\u6237\u5217\u8868<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u67e5\u770b\u5f53\u524d\u767b\u5f55\u7528\u6237\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# who<\/strong>\nroot     tty2         2022-05-19 02:12 (tty2)\n<\/pre>\n\n\n\n

\u67e5\u770b\u5f53\u524d\u767b\u5f55\u7528\u6237\u4fe1\u606f\uff0c\u5e76\u52a0\u4e0a\u6807\u9898\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# who -H<\/strong>\nNAME     LINE         TIME             COMMENT\nroot     tty2         2022-05-19 02:12 (tty2)<\/pre>\n\n\n\n

\u67e5\u770b\u5f53\u524d\u5168\u90e8\u7684\u767b\u5f55\u5168\u90e8\u7528\u6237\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# who -H -a<\/strong>\nNAME       LINE         TIME             IDLE          PID COMMENT  EXIT\n           system boot  2022-05-19 02:12\n           run-level 5  2022-05-19 02:12\nroot     + tty2         2022-05-19 02:12  old         2164 (tty2)<\/pre>\n\n\n\n

\u67e5\u770b\u7cfb\u7edf\u7684\u6700\u8fd1\u542f\u52a8\u65f6\u95f4\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# who -b<\/strong>\n         system boot  2022-05-19 02:12<\/pre>\n","protected":false},"excerpt":{"rendered":"

who\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7528\u4e8e\u663e\u793a\u5f53\u524d\u767b\u5f55\u7528\u6237\u4fe1\u606f\uff0c\u5305\u542b\u767b\u5f55\u7684\u7528\u6237\u540d\u3001\u7ec8\u7aef\u3001\u65e5\u671f\u65f6\u95f4\u3001\u8fdb\u7a0b\u7b49\u4fe1\u606f\uff0c\u5e2e\u52a9\u8fd0\u7ef4\u4eba\u5458\u4e86\u89e3\u5f53\u524d […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/473"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=473"}],"version-history":[{"count":12,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/473\/revisions"}],"predecessor-version":[{"id":10043,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/473\/revisions\/10043"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}