{"id":2052,"date":"2019-05-21T14:26:42","date_gmt":"2019-05-21T06:26:42","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=2052"},"modified":"2019-05-26T12:01:53","modified_gmt":"2019-05-26T04:01:53","slug":"whoami","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/whoami","title":{"rendered":"whoami\u547d\u4ee4 – \u6253\u5370\u5f53\u524d\u767b\u5f55\u7528\u6237"},"content":{"rendered":"\n

whoami\u547d\u4ee4\u662f\u6253\u5370\u4e0e\u5f53\u524d\u6709\u6548\u7528\u6237ID\u5173\u8054\u7684\u7528\u6237\u540d\uff1b\u8fd9\u4e2a\u5de5\u5177\u53ef\u4ee5\u7528\u6765\u83b7\u53d6\u672c\u5730\u7cfb\u7edf\u4e0a\u5f53\u524d\u7528\u6237(\u8bbf\u95ee\u4ee4\u724c)\u7684\u7528\u6237\u540d\u548c\u7ec4\u4fe1\u606f\uff0c\u4ee5\u53ca\u76f8\u5e94\u7684\u5b89\u5168\u6807\u8bc6\u7b26(SID)\u3001\u58f0\u660e\u3001\u672c\u5730\u7cfb\u7edf\u4e0a\u5f53\u524d\u7528\u6237\u7684\u6743\u9650\u3001\u767b\u5f55\u6807\u8bc6\u7b26(\u767b\u5f55 ID)\u3002<\/p>\n\n\n\n

whoami\u547d\u4ee4\u663e\u793a\u81ea\u8eab\u7684\u7528\u6237\u540d\u79f0\uff0c\u672c\u6307\u4ee4\u76f8\u5f53\u4e8e\u6267\u884c”id -un”\u6307\u4ee4\u3002<\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570<\/strong>\uff1a<\/p>\n\n\n\n
--help<\/td>\u5728\u7ebf\u5e2e\u52a9<\/td><\/tr>
--version<\/td>\u663e\u793a\u7248\u672c\u4fe1\u606f<\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u67e5\u8be2\u5f53\u524d\u767b\u5f55\u7684\u7528\u6237\u540d\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# whoami \nroot<\/pre>\n","protected":false},"excerpt":{"rendered":"

whoami\u547d\u4ee4\u662f\u6253\u5370\u4e0e\u5f53\u524d\u6709\u6548\u7528\u6237ID\u5173\u8054\u7684\u7528\u6237\u540d\uff1b\u8fd9\u4e2a\u5de5\u5177\u53ef\u4ee5\u7528\u6765\u83b7\u53d6\u672c\u5730\u7cfb\u7edf\u4e0a\u5f53\u524d\u7528\u6237(\u8bbf\u95ee\u4ee4\u724c)\u7684\u7528\u6237 […]<\/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\/2052"}],"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=2052"}],"version-history":[{"count":7,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2052\/revisions"}],"predecessor-version":[{"id":2581,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/2052\/revisions\/2581"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=2052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=2052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=2052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}