\u663e\u793a\u5f53\u524d\u7cfb\u7edf\u4e2d\u767b\u5f55\u7684\u7528\u6237\u6570\uff1a<\/p>\n
\u276f who -q\r\ndebugpoint\r\nusers=1<\/pre>\n\u6240\u6709\u4e0a\u8ff0\u547d\u4ee4\u4e0e -H \u9009\u9879\u914d\u5bf9\u65f6\uff0c\u4f60\u4f1a\u6709\u4e00\u4e2a\u66f4\u597d\u7684\u542b\u6807\u9898\u884c\u7684\u4fe1\u606f\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n
who -H\r\nNAME LINE TIME COMMENT\r\ndebugpoint tty2 2023-01-01 11:22 (tty2)<\/pre>\n\u5982\u679c\u4f60\u60f3\u5728 Linux \u4e2d\u663e\u793a\u4e0e who \u547d\u4ee4\u6709\u5173\u7684\u6240\u6709\u4fe1\u606f\uff0c\u8bf7\u4f7f\u7528\u9009\u9879 -a\uff1a<\/p>\n
who -aH\r\nNAME LINE TIME IDLE PID COMMENT EXIT\r\nsystem boot 2023-01-01 11:19\r\nrun-level 5 2023-01-01 11:19\r\ndebugpoint + tty2 2023-01-01 11:22 13:26 2042 (tty2)<\/pre>\n\u50cf\u5f80\u5e38\u4e00\u6837\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u91cd\u5b9a\u5411\u5c06 who \u547d\u4ee4\u7684\u8f93\u51fa\u4fdd\u5b58\u5230\u4efb\u4f55\u6587\u4ef6\uff1a<\/p>\n
who > user_details.txt<\/pre>\nwho \u547d\u4ee4\u9009\u9879\u7684\u4f8b\u5b50\u603b\u7ed3<\/strong><\/span><\/div>\n\u4e0b\u9762\u662f\u4e00\u4e9b who \u547d\u4ee4\u7684\u4f8b\u5b50\u548c\u5b83\u4eec\u7684\u89e3\u91ca\uff1a<\/p>\n
\u4e0b\u9762\u662f\u4e00\u4e9b\u53ef\u4ee5\u4e0e who \u547d\u4ee4\u4e00\u8d77\u4f7f\u7528\u7684\u9009\u9879\uff1a<\/p>\n
\n- -a: \u663e\u793a\u6bcf\u4e2a\u7528\u6237\u7684\u4e3b\u673a\u540d\u3001\u767b\u5f55\u65f6\u95f4\u548c\u8fdb\u7a0b<\/li>\n
- -b: \u663e\u793a\u4e0a\u6b21\u7cfb\u7edf\u542f\u52a8\u7684\u65f6\u95f4<\/li>\n
- -d: \u663e\u793a\u6b7b\u8fdb\u7a0b\uff08\u5df2\u7ec8\u6b62\u4f46\u672a\u4ece utmp \u6587\u4ef6\u4e2d\u5220\u9664\u7684\u8fdb\u7a0b\uff09<\/li>\n
- -H: \u663e\u793a\u6807\u9898\u884c<\/li>\n
- -l: \u663e\u793a\u957f\u683c\u5f0f\u7684\u767b\u5f55\u8fdb\u7a0b<\/li>\n
- -m: \u53ea\u663e\u793a\u5728 ARG1 ARG2 \u6307\u5b9a\u7684\u7ec8\u7aef\u4e0a\u767b\u5f55\u7684\u7528\u6237\u7684\u540d\u5b57\u548c\u884c\u3002<\/li>\n
- -q: \u663e\u793a\u5df2\u767b\u5f55\u7528\u6237\u7684\u6570\u91cf<\/li>\n
- -u: \u663e\u793a\u62e5\u6709\u672a\u8131\u79bb\u8fdb\u7a0b\u7684\u7528\u6237\u7684\u4fe1\u606f<\/li>\n
- -w: \u663e\u793a\u5df2\u7ecf\u767b\u5f55\u7684\u7528\u6237\u4fe1\u606f\uff0c\u683c\u5f0f\u4e0e utmp \u6587\u4ef6\u76f8\u540c<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"
Linux \u4e2d\u7684 who \u547d\u4ee4\u7528\u4e8e\u663e\u793a\u5f53\u524d\u767b\u5f55\u5230\u7cfb\u7edf\u4e2d\u7684\u7528\u6237\u7684\u4fe1\u606f\u3002\u5b83\u663e\u793a\u7528\u6237\u7684\u767b\u5f55\u540d\uff0c\u7528\u6237\u767b\u5f55\u7684\u7ec8\u7aef\uff0c\u7528\u6237\u767b […]<\/p>\n","protected":false},"author":1481,"featured_media":261463,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-261459","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/261459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1481"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=261459"}],"version-history":[{"count":6,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/261459\/revisions"}],"predecessor-version":[{"id":263113,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/261459\/revisions\/263113"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/261463"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=261459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=261459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=261459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}