{"id":1638,"date":"2020-08-31T23:00:00","date_gmt":"2020-08-31T19:30:00","guid":{"rendered":"https:\/\/parsdev.com\/wpblog\/who-command\/"},"modified":"2025-07-28T08:54:23","modified_gmt":"2025-07-28T05:24:23","slug":"who-command","status":"publish","type":"post","link":"https:\/\/parsdev.com/blog\/who-command\/","title":{"rendered":"\u062f\u0633\u062a\u0648\u0631 who \u062f\u0631 \u0644\u06cc\u0646\u0648\u06a9\u0633"},"content":{"rendered":"<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u0642\u0635\u062f \u0628\u0631\u0631\u0633\u06cc \u062f\u0633\u062a\u0648\u0631 who \u0631\u0627 \u062f\u0627\u0631\u06cc\u0645 \u06a9\u0647 \u062f\u0631 \u067e\u06a9\u06cc\u062c GNU coreutil \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f. who \u062f\u0633\u062a\u0648\u0631\u06cc \u0633\u0648\u062f\u0645\u0646\u062f \u0627\u0633\u062a \u06a9\u0647 \u0644\u06cc\u0633\u062a \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0644\u0627\u06af\u06cc\u0646 \u0634\u062f\u0647 \u0631\u0627 \u0628\u0647 \u0634\u0645\u0627 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc \u062f\u0647\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f run level \u062c\u0627\u0631\u06cc\u060c \u0632\u0645\u0627\u0646 \u0622\u062e\u0631\u06cc\u0646 \u0631\u06cc\u0628\u0648\u062a \u0633\u06cc\u0633\u062a\u0645 \u0648 \u0628\u0633\u06cc\u0627\u0631\u06cc \u0645\u0648\u0627\u0631\u062f \u062f\u06cc\u06af\u0631 \u0631\u0627 \u0628\u0647 \u0634\u0645\u0627 \u0646\u0634\u0627\u0646 \u062f\u0647\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p>\u0686\u06af\u0648\u0646\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 who \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u0645 Syntax \u0627\u0648\u0644\u06cc\u0647 \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 who \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u0627\u0633\u062a:<\/p>\n<pre>\r\n <code>\r\n    who [OPTION]... [ FILE | ARG1 ARG2 ]\r\n<\/code><\/pre>\n<p>\u0648\u0642\u062a\u06cc \u0628\u062f\u0648\u0646 \u0647\u06cc\u0686 \u0622\u067e\u0634\u0646 \u06cc\u0627 \u0622\u0631\u06af\u0648\u0645\u0627\u0646\u06cc \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u0648\u062f \u062e\u0631\u0648\u062c\u06cc \u0686\u06cc\u0632\u06cc \u0634\u0628\u06cc\u0647 \u0628\u0647 \u0632\u06cc\u0631 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f. \u062f\u0633\u062a\u0648\u0631:<\/p>\n<pre>\r\n <code>\r\nwho\r\n<\/code><\/pre>\n<p>\u062e\u0631\u0648\u062c\u06cc:<\/p>\n<pre>\r\n <code>\r\n    root     pts\/0        2020-11-17 20:10 (10.10.0.2)\r\n\r\n    linuxize    pts\/1        2020-11-17 20:11 (10.10.0.8)\r\n<\/code><\/pre>\n<p>who \u0644\u06cc\u0633\u062a\u06cc \u0641\u0631\u0645\u062a \u0628\u0646\u062f\u06cc \u0634\u062f\u0647 \u0627\u0632 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u062f\u0631 \u062d\u0627\u0644 \u062d\u0627\u0636\u0631 \u0644\u0627\u06af\u06cc\u0646 \u0634\u062f\u0647 \u0631\u0627 \u0628\u0647 \u0634\u0645\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f. \u0647\u0631 \u062e\u0637 \u0634\u0627\u0645\u0644 \u06f4 \u0641\u06cc\u0644\u062f \u062c\u062f\u0627\u06af\u0627\u0646\u0647 \u0627\u0633\u062a \u06a9\u0647 \u0628\u0627 \u0641\u0627\u0635\u0644\u0647 \u0627\u0632 \u0647\u0645 \u062c\u062f\u0627 \u0634\u062f\u0647 \u0627\u0646\u062f: \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631 \u0644\u0627\u06af\u06cc\u0646 \u0634\u062f\u0647 \u062a\u0631\u0645\u06cc\u0646\u0627\u0644 \u06cc\u0648\u0632\u0631 \u0632\u0645\u0627\u0646 \u0644\u0627\u06af\u06cc\u0646 \u06a9\u0627\u0631\u0628\u0631 Hostname \u06cc\u0627 \u0622\u062f\u0631\u0633 IP \u0645\u062d\u0644\u06cc \u06a9\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0644\u0627\u06af\u06cc\u0646 \u06a9\u0631\u062f\u0647 \u0627\u0633\u062a. \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 IP\u0647\u0627 \u0627\u0632 \u0622\u067e\u0634\u0646 &ndash;ips \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u0633\u0631 \u0633\u062a\u0648\u0646\u0647\u0627 \u0627\u0632 \u0622\u067e\u0634\u0646 &ndash;H (&#8211;heading) \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u0645\u0627\u0646\u0646\u062f:<\/p>\n<pre>\r\n <code>\r\nwho -h\r\n<\/code><\/pre>\n<p>\u062e\u0631\u0648\u062c\u06cc:<\/p>\n<pre>\r\n <code>\r\nNAME      LINE         TIME             COMMENT\r\n\r\nroot      pts\/0        2020-11-17 20:10 (10.10.0.2)\r\n\r\nlinuxize  pts\/1        2020-11-17 20:11 (10.10.0.8)\r\n<\/code><\/pre>\n<p>\u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0633\u06cc\u0633\u062a\u0645 \u0648 \u0627\u06cc\u0646\u06a9\u0647 \u0686\u0647 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646\u06cc \u0644\u0627\u06af\u06cc\u0646 \u0634\u062f\u0647 \u0627\u0646\u062f \u0631\u0627 \u0627\u0632 \u0622\u062f\u0631\u0633 \/var\/run\/utmp \u062f\u0631\u06cc\u0627\u0641\u062a \u0645\u06cc \u06a9\u0646\u062f. \u0627\u06af\u0631 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u062f \u0627\u0632 \u0641\u0627\u06cc\u0644 \u062f\u06cc\u06af\u0631\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0622\u062f\u0631\u0633 \u0631\u0627 \u0628\u0647 \u062f\u0633\u062a\u0648\u0631 \u0628\u062f\u0647\u06cc\u062f. who \u062a\u0627 \u06f2 non-option \u0622\u0631\u06af\u0648\u0645\u0627\u0646 \u0631\u0627 \u0642\u0628\u0648\u0644 \u0645\u06cc \u06a9\u0646\u062f. \u0648\u0642\u062a\u06cc \u0628\u0627 \u06f2 \u0622\u0631\u06af\u0648\u0645\u0627\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f \u0641\u0642\u0637 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u062f\u0631\u0628\u0627\u0631\u0647 \u062a\u0631\u0645\u06cc\u0646\u0627\u0644 \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u06cc\u0648\u0632\u0631 \u0641\u0639\u0644\u06cc \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc \u062f\u0647\u062f. \u062e\u0631\u0648\u062c\u06cc \u06cc\u06a9\u0633\u0627\u0646\u06cc \u062f\u0631 \u0635\u0648\u0631\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0622\u067e\u0634\u0646 &ndash;m \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f. \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0647\u0631 \u062f\u0648 \u0622\u0631\u06af\u0648\u0645\u0627\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre>\r\n <code>\r\nwho am i\r\n\r\nwho mom love\r\n\r\nwho foo bar\r\n\r\nwho &ndash;m\r\n<\/code><\/pre>\n<p>\u0647\u0631 \u062f\u0633\u062a\u0648\u0631 \u0628\u0627\u0644\u0627 \u062e\u0631\u0648\u062c\u06cc \u06cc\u06a9\u0633\u0627\u0646\u06cc \u062f\u0627\u0631\u062f \u06a9\u0647 \u062f\u0631 \u0632\u06cc\u0631 \u0622\u0645\u062f\u0647:<\/p>\n<pre>\r\n <code>\r\nlinuxize  pts\/1        2020-11-17 20:11 (10.10.0.8)\r\n<\/code><\/pre>\n<p>\u0622\u067e\u0634\u0646\u0647\u0627\u06cc \u062f\u0633\u062a\u0648\u0631 who who \u0622\u067e\u0634\u0646 \u0647\u0627\u06cc \u0645\u062a\u0641\u0627\u0648\u062a\u06cc \u0631\u0627 \u0642\u0628\u0648\u0644 \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0645\u0639\u0645\u0648\u0644\u0627 \u0628\u0647 \u0646\u062f\u0631\u062a \u0627\u0632 \u0622\u0646\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f. -b\u060c&#8211;boot \u0622\u067e\u0634\u0646\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0628\u0647 who \u0645\u06cc \u06af\u0648\u06cc\u062f \u062a\u0627 \u0632\u0645\u0627\u0646 \u0622\u062e\u0631\u06cc\u0646 \u0631\u06cc\u0628\u0648\u062a \u0631\u0627 \u0627\u0639\u0644\u0627\u0645 \u06a9\u0646\u062f: \u062f\u0633\u062a\u0648\u0631:<\/p>\n<pre>\r\n <code>\r\nwho -b\r\n<\/code><\/pre>\n<p>\u062e\u0631\u0648\u062c\u06cc:<\/p>\n<pre>\r\n <code>\r\n         system boot  2020-07-20 19:02\r\n<\/code><\/pre>\n<p>\u0628\u0631\u0627\u06cc \u06af\u0631\u0641\u062a\u0646 \u0644\u06cc\u0633\u062a \u067e\u0631\u062f\u0627\u0632\u0634 \u0647\u0627\u06cc \u0645\u0631\u062f\u0647 \u06cc\u0627 dead process\u0647\u0627 \u0627\u0632 &ndash;d\u060c \u0622\u067e\u0634\u0646 &ndash;dead \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645: \u062f\u0633\u062a\u0648\u0631:<\/p>\n<pre>\r\n <code>\r\nwho -d\r\n<\/code><\/pre>\n<p>-r\u060c \u0622\u067e\u0634\u0646 &ndash;runlevel \u0628\u0647 who \u0645\u06cc\u06af\u0648\u06cc\u062f \u06a9\u0647 runlevel \u062d\u0627\u0644 \u062d\u0627\u0636\u0631 \u0631\u0627 \u0627\u0639\u0644\u0627\u0645 \u06a9\u0646\u062f: \u062f\u0633\u062a\u0648\u0631:<\/p>\n<pre>\r\n <code>\r\nwho -r\r\n<\/code><\/pre>\n<p>\u062e\u0631\u0648\u062c\u06cc:<\/p>\n<pre>\r\n <code>\r\n         run-level 5  2020-07-20 19:02\r\n<\/code><\/pre>\n<p>\u0628\u0631\u0627\u06cc \u062f\u06cc\u062f\u0646 \u062a\u0646\u0647\u0627 \u0646\u0627\u0645 \u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u06cc \u0648 \u062a\u0639\u062f\u0627\u062f \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0644\u0627\u06af\u06cc\u0646 \u0634\u062f\u0647 \u062f\u0631 \u062d\u0627\u0644 \u062d\u0627\u0636\u0631 \u0627\u0632 &ndash;q\u060c \u0622\u067e\u0634\u0646 &ndash;count \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645: \u062f\u0633\u062a\u0648\u0631:<\/p>\n<pre>\r\n <code>\r\nwho -q\r\n<\/code><\/pre>\n<p>\u062e\u0631\u0648\u062c\u06cc: root linuxize<\/p>\n<pre>\r\n <code>\r\n# users=2\r\n<\/code><\/pre>\n<p>-a\u060c \u0622\u067e\u0634\u0646 &ndash;all \u0628\u0647 who \u062f\u0633\u062a\u0648\u0631 \u0645\u06cc \u062f\u0647\u062f \u062a\u0627 \u062a\u0645\u0627\u0645\u06cc \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0647\u062f: \u062f\u0633\u062a\u0648\u0631:<\/p>\n<pre>\r\n <code>\r\nwho -a\r\n<\/code><\/pre>\n<p>\u062e\u0631\u0648\u062c\u06cc:<\/p>\n<pre>\r\n <code>\r\n           system boot  2020-07-20 19:02\r\n\r\nLOGIN      tty1         2020-07-20 19:02               673 id=tty1\r\n\r\n           run-level 5  2020-07-20 19:02\r\n\r\nroot       - pts\/0      2020-11-17 20:10   .       2212314 (89.205.101.54)\r\n\r\n           pts\/2        2020-10-10 10:19           1363538 id=ts\/2  term=0 exit=0\r\n\r\nlinuxize   + pts\/1      2020-11-17 20:11 01:46     2212387 (89.205.101.54)\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p><strong>\u0646\u062a\u06cc\u062c\u0647 \u06af\u06cc\u0631\u06cc:<\/strong><\/p>\n<p>\u0628\u0631\u0627\u06cc \u062f\u06cc\u062f\u0646 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u06cc\u0634\u062a\u0631\u06cc \u062f\u0631\u0628\u0627\u0631\u0647 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646\u06cc \u06a9\u0647 \u062f\u0631 \u062d\u0627\u0644 \u062d\u0627\u0636\u0631 \u0644\u0627\u06af\u06cc\u0646 \u0634\u062f\u0647 \u0627\u0646\u062f\u060c \u062f\u0633\u062a\u0648\u0631 w \u0631\u0627 \u0646\u06cc\u0632 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n","protected":false},"excerpt":{"rendered":"\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u0642\u0635\u062f \u0628\u0631\u0631\u0633\u06cc \u062f\u0633\u062a\u0648\u0631 who \u0631\u0627 \u062f\u0627\u0631\u06cc\u0645 \u06a9\u0647 \u062f\u0631 \u067e\u06a9\u06cc\u062c GNU coreutil \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f. who \u062f\u0633\u062a\u0648\u0631\u06cc&hellip;","protected":false},"author":1,"featured_media":1637,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"csco_singular_sidebar":"","csco_page_header_type":"","csco_page_load_nextpost":"","footnotes":""},"categories":[3],"tags":[],"class_list":{"0":"post-1638","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-linux","8":"cs-entry"},"_links":{"self":[{"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/posts\/1638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/comments?post=1638"}],"version-history":[{"count":1,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/posts\/1638\/revisions"}],"predecessor-version":[{"id":5736,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/posts\/1638\/revisions\/5736"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/media\/1637"}],"wp:attachment":[{"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/media?parent=1638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/categories?post=1638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/parsdev.com/blog\/wp-json\/wp\/v2\/tags?post=1638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}