{"id":6339,"date":"2020-01-19T19:36:00","date_gmt":"2020-01-19T11:36:00","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6339"},"modified":"2020-01-21T16:27:31","modified_gmt":"2020-01-21T08:27:31","slug":"fuser","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/fuser","title":{"rendered":"fuser\u547d\u4ee4 – \u4f7f\u7528\u6587\u4ef6\u6216\u6587\u4ef6\u7ed3\u6784\u8bc6\u522b\u8fdb\u7a0b"},"content":{"rendered":"\n
fuser\u547d\u4ee4\u4f5c\u7528\u662f\u62a5\u544a\u8fdb\u7a0b\u4f7f\u7528\u7684\u6587\u4ef6\u548c\u7f51\u7edc\u5957\u63a5\u5b57\u3002<\/p>\n\n\n\n
fuser\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u51fa\u5f53\u524d\u54ea\u4e2a\u7a0b\u5e8f\u5728\u4f7f\u7528\u78c1\u76d8\u4e0a\u7684\u67d0\u4e2a\u6587\u4ef6\u3001\u6302\u8f7d\u70b9\u3001\u751a\u81f3\u7f51\u7edc\u7aef\u53e3\uff0c\u5e76\u7ed9\u51fa\u7a0b\u5e8f\u8fdb\u7a0b\u7684\u8be6\u7ec6\u4fe1\u606f\u3002 \u5b83\u8fd8\u663e\u793a\u4f7f\u7528\u6307\u5b9a\u6587\u4ef6\u6216\u8005\u6587\u4ef6\u7cfb\u7edf\u7684\u8fdb\u7a0bID\u3002 <\/p>\n\n\n\n
\u6bcf\u4e2a\u8fdb\u7a0b\u53f7\u540e\u9762\u90fd\u8ddf\u968f\u4e00\u4e2a\u5b57\u6bcd\uff0c\u8be5\u5b57\u6bcd\u6307\u793a\u8fdb\u7a0b\u5982\u4f55\u4f7f\u7528\u6587\u4ef6\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f:<\/strong> fuser [\u53c2\u6570] [\u6587\u4ef6]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u8981\u5217\u51fa\u4f7f\u7528\/etc\/passwd\u6587\u4ef6\u7684\u672c\u5730\u8fdb\u7a0b\u7684\u8fdb\u7a0b\u53f7\uff1a<\/p>\n\n\n\n \u5217\u51fa\u4f7f\u7528\/etc\/filesystems\u6587\u4ef6\u7684\u8fdb\u7a0b\u7684\u8fdb\u7a0b\u53f7\u548c\u7528\u6237\u767b\u5f55\u540d\uff1a<\/p>\n\n\n\n \u7ec8\u6b62\u4f7f\u7528\u7ed9\u5b9a\u6587\u4ef6\u7cfb\u7edf\u7684\u6240\u6709\u8fdb\u7a0b\uff1a<\/p>\n\n\n\n <\/p>\n","protected":false},"excerpt":{"rendered":" fuser\u547d\u4ee4\u4f5c\u7528\u662f\u62a5\u544a\u8fdb\u7a0b\u4f7f\u7528\u7684\u6587\u4ef6\u548c\u7f51\u7edc\u5957\u63a5\u5b57\u3002 fuser\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u51fa\u5f53\u524d\u54ea\u4e2a\u7a0b\u5e8f\u5728\u4f7f\u7528\u78c1\u76d8\u4e0a\u7684\u67d0\u4e2a\u6587 […]<\/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\/6339"}],"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=6339"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6339\/revisions"}],"predecessor-version":[{"id":6538,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6339\/revisions\/6538"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-a<\/td> \u663e\u793a\u547d\u4ee4\u884c\u4e2d\u6307\u5b9a\u7684\u6240\u6709\u6587\u4ef6<\/td><\/tr> -k<\/td> \u6740\u6b7b\u8bbf\u95ee\u6307\u5b9a\u6587\u4ef6\u7684\u6240\u6709\u8fdb\u7a0b<\/td><\/tr> -i<\/td> \u6740\u6b7b\u8fdb\u7a0b\u524d\u9700\u8981\u7528\u6237\u8fdb\u884c\u786e\u8ba4<\/td><\/tr> -l<\/td> \u5217\u51fa\u6240\u6709\u5df2\u77e5\u4fe1\u53f7\u540d<\/td><\/tr> -m<\/td> \u6307\u5b9a\u4e00\u4e2a\u88ab\u52a0\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf\u6216\u4e00\u4e2a\u88ab\u52a0\u8f7d\u7684\u5757\u8bbe\u5907<\/td><\/tr> -n<\/td> \u9009\u62e9\u4e0d\u540c\u7684\u540d\u79f0\u7a7a\u95f4<\/td><\/tr> -u<\/td> \u5728\u6bcf\u4e2a\u8fdb\u7a0b\u540e\u663e\u793a\u6240\u5c5e\u7684\u7528\u6237\u540d<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# fuser \/etc\/passwd<\/pre>\n\n\n\n
[root@linuxcool ~]# fuser -u \/etc\/filesystems<\/pre>\n\n\n\n
[root@linuxcool ~]# fuser -k -x -u -c \/dev\/hd1<\/pre>\n\n\n\n