{"id":7976,"date":"2020-06-22T15:51:13","date_gmt":"2020-06-22T07:51:13","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7976"},"modified":"2020-06-22T15:51:14","modified_gmt":"2020-06-22T07:51:14","slug":"lsns","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lsns","title":{"rendered":"lsns\u547d\u4ee4 – \u5217\u51fa\u540d\u79f0\u7a7a\u95f4"},"content":{"rendered":"\n

lsns\u547d\u4ee4\u5217\u51fa\u6709\u5173\u6240\u6709\u5f53\u524d\u53ef\u8bbf\u95ee\u7684\u540d\u79f0\u7a7a\u95f4\u6216\u7ed9\u5b9a\u540d\u79f0\u7a7a\u95f4\u7684\u4fe1\u606f\u3002\u547d\u540d\u7a7a\u95f4\u6807\u8bc6\u7b26\u662f\u4e00\u4e2a\u7d22\u5f15\u8282\u70b9\u53f7\u3002<\/p>\n\n\n\n

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

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

-J<\/td>\u4f7f\u7528 JSON \u8f93\u51fa\u683c\u5f0f<\/td><\/tr>
-l<\/td>\u4f7f\u7528\u5217\u8868\u683c\u5f0f\u7684\u8f93\u51fa<\/td><\/tr>
-n<\/td>\u4e0d\u6253\u5370\u6807\u9898<\/td><\/tr>
-r<\/td>\u4f7f\u7528\u539f\u751f\u8f93\u51fa\u683c\u5f0f<\/td><\/tr>
-u<\/td>\u4e0d\u622a\u65ad\u5217\u4e2d\u7684\u6587\u672c<\/td><\/tr>
-t<\/td>\u540d\u5b57\u7a7a\u95f4\u7c7b\u578b(mnt, net, ipc, user, pid, uts, cgroup)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u5217\u51fanet\u540d\u5b57\u7a7a\u95f4\u7c7b\u578b\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lsns -t net<\/pre>\n\n\n\n

\u4f7f\u7528\u5217\u8868\u683c\u5f0f\u7684\u8f93\u51fa\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lsns -l<\/pre>\n\n\n\n

\u4e0d\u6253\u5370\u6807\u9898\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lsns -n<\/pre>\n\n\n\n

\u4e0d\u622a\u65ad\u5217\u4e2d\u7684\u6587\u672c\uff1a<\/p>\n\n\n\n

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

lsns\u547d\u4ee4\u5217\u51fa\u6709\u5173\u6240\u6709\u5f53\u524d\u53ef\u8bbf\u95ee\u7684\u540d\u79f0\u7a7a\u95f4\u6216\u7ed9\u5b9a\u540d\u79f0\u7a7a\u95f4\u7684\u4fe1\u606f\u3002\u547d\u540d\u7a7a\u95f4\u6807\u8bc6\u7b26\u662f\u4e00\u4e2a\u7d22\u5f15\u8282\u70b9\u53f7\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1a […]<\/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\/7976"}],"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=7976"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7976\/revisions"}],"predecessor-version":[{"id":7985,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7976\/revisions\/7985"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}