{"id":273657,"date":"2023-05-30T04:05:17","date_gmt":"2023-05-29T20:05:17","guid":{"rendered":"https:\/\/lrxjmw.cn\/lzzkycdwjhpt.html"},"modified":"2023-05-30T04:05:17","modified_gmt":"2023-05-29T20:05:17","slug":"lzzkycdwjhpt","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lzzkycdwjhpt.html","title":{"rendered":"Linux\u4e2d\u67e5\u770b\u9690\u85cf\u7684\u6587\u4ef6\u548c\u666e\u901a\u6587\u4ef6\u7684\u65b9\u6cd5"},"content":{"rendered":"

\u5728windows\u53ef\u4ee5\u67e5\u770b\u9690\u85cf\u7684\u6587\u4ef6\u3002\u5728Linux<\/a>\u4e2d\u4e5f\u53ef\u4ee5\u67e5\u770b\u9690\u85cf\u6587\u4ef6\u4e14\u5341\u5206\u5bb9\u6613\u3002\u8981\u67e5\u770b\u9690\u85cf\u6587\u4ef6\u8fd0\u884cls-a\u547d\u4ee4<\/a>\u5373\u53ef\u3002<\/p>\n

\u60a8\u53ef\u4ee5\u770b\u89c1\u540d\u79f0\u4ee5\u70b9.\u5f00\u5934\u7684\u9690\u85cf\u6587\u4ef6\u3002\u800c\u4e14\u60a8\u4f1a\u542c\u5230\u5f53\u524d\u76ee\u5f55\u7684\u6240\u6709\u9690\u85cf\u6587\u4ef6\u548c\u666e\u901a\u6587\u4ef6\u3002<\/p>\n

\n

ls<\/span> -a\n<\/span><\/span><\/code><\/pre>\n<\/p>\n

ls\u547d\u4ee4\u4ec5\u67e5\u770b\u9690\u85cf\u6587\u4ef6<\/p>\n

\u8981\u4ec5\u67e5\u770b\u9690\u85cf\u6587\u4ef6\u548c\u76ee\u5f55\uff0c\u6700\u7b80\u5355\u7684\u65b9\u5f0f\u662f\u4f7f\u7528ls-a\u663e\u793a\u9690\u85cf\u6587\u4ef6\uff0c\u4e4b\u540e\u4f7f\u7528grep\u547d\u4ee4\u4ec5\u8fc7\u6ee4\u4ee5.\u5f00\u5934\u7684\u884c\u3002<\/p>\n

^\u8868\u793a\u5f00\u59cb\u4e8e\u3002grep\u547d\u4ee4\u9ed8\u8ba4\u4f7f\u7528\u57fa\u672c\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u70b9\u5b57\u7b26\u987b\u8981\u7528\\\u8fdb\u884c\u901a\u914d\u7b26linux\u5982\u4f55\u67e5\u770b\u9690\u85cf\u6587\u4ef6<\/strong>\uff0c\u5426\u5219shell\u5c06\u89e3\u91ca\u4e3a\u5f53\u524d\u76ee\u5f55\u3002<\/p>\n

\u4f46\u662f\u56e0\u4e3a\u5728\u547d\u4ee4\u4f7f\u7528\u7279\u6b8a\u5b57\u7b26\uff0c\u56e0\u800c\u6240\u6709\u5185\u5bb9\u90fd\u7528\u53cc\u5192\u53f7\u6216\u5219\u5355\u5192\u53f7\u62ec\u4e0a\u53bb\uff0c\u9632\u6b62Shell\u7684\u89e3\u91ca\u3002<\/p>\n

\n

ls<\/span> -a | grep \"^\\.\"<\/span>\n<\/span><\/span><\/code><\/pre>\n<\/p>\n

ls\u547d\u4ee4\u67e5\u770b\u9690\u85cf\u6587\u4ef6\u76ee\u5f55\u533a\u5206\u7c7b\u578b<\/p>\n

\u8fd9\u513f\u8fd8\u6709\u4e00\u4e2a\u5c0f\u95ee\u9898\u3002\u867d\u7136\u60a8\u53ef\u4ee5\u5728\u5355\u72ec\u7684\u884c\u67e5\u770b\u9690\u85cf\u6587\u4ef6\u76ee\u5f55\uff0c\u4f46\u60a8\u96be\u4ee5\u5206\u8fa8\u5b83\u662f\u6587\u4ef6\u8fd8\u662f\u76ee\u5f55\u3002<\/p>\n

\u5047\u5982\u4f60\u60f3\u8981\u5206\u8fa8\u662f\u9690\u85cf\u6587\u4ef6\u8fd8\u662f\u9690\u85cf\u76ee\u5f55\uff0c\u8fd8\u6709\u53e6\u4e00\u79cd\u65b9\u5f0f\u53ef\u4ee5\u5b9e\u73b0\uff0c\u90a3\u5c31\u662f\u7ec4\u5408\u4f7f\u7528ls\u547d\u4ee4-d\u548c-l\u9009\u9879\u3002<\/p>\n

\u8fd9\u513f\u4f7f\u7528-d\u9009\u9879\u7684\u5f88\u91cd\u8981\u3002ls\u547d\u4ee4-d\u9009\u9879\u610f\u5473\u7740\u53ea\u5217\u4e3e\u76ee\u5f55\uff0c\u800c\u4e0d\u662f\u5176\u5185\u5bb9\u3002\u5426\u5219\uff0cls\u547d\u4ee4\u4e5f\u4f1a\u663e\u793a\u9690\u85cf\u6587\u4ef6\u5939\u5185\u90e8\u7684\u5185\u5bb9\u3002<\/p>\n

\n

ls<\/span> -ld .*\n<\/span><\/span><\/code><\/pre>\n<\/p>\n

ls\u547d\u4ee4\u4ec5\u663e\u793a\u9690\u85cf\u6587\u4ef6\u76ee\u5f55<\/p>\n

linux\u4e2d\u67e5\u770b\u9690\u85cf\u6587\u4ef6_linux\u5982\u4f55\u67e5\u770b\u9690\u85cf\u6587\u4ef6_\u67e5\u770b\u9690\u85cf\u6587\u4ef6<\/p>\n

\u53ea\u663e\u793a\u9690\u85cf\u6587\u4ef6\u800c\u4e0d\u663e\u793a\u9690\u85cf\u76ee\u5f55\u5341\u5206\u5bb9\u6613\u3002\u53ef\u4ee5\u4f7f\u7528grep\u547d\u4ee4\u8fc7\u6ee4\u6389\u4ee5d\u5f00\u5934\u7684\u884c\uff0cd\u5f00\u5934\u7684\u662f\u76ee\u5f55\u3002<\/p>\n

\u8981\u4f7f\u7528grep\u547d\u4ee4\u6392\u9664\u4ee5d\u5f00\u5934\u7684\u884clinux\u5982\u4f55\u67e5\u770b\u9690\u85cf\u6587\u4ef6<\/strong>\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f^d\u8868\u793a\u4ee5d\u5f00\u5934\uff0c\u4e4b\u540e\u4f7f\u7528grep\u547d\u4ee4\u7684-v\u8fdb\u884c\u53cd\u8f6c\u5339\u914dlinux\u7cfb\u7edf\u7f16\u7a0b\uff0c\u8fd9\u513f\u6211\u4eec\u4f7f\u7528-E\u8868\u793a\u4f7f\u7528\u6269\u5145\u6b63\u5219\u8868\u8fbe\u5f0f\u3002<\/p>\n

\u56e0\u800c\u67e5\u770b\u6700\u7ec8\u67e5\u770b\u9690\u85cf\u6587\u4ef6\u7684\u547d\u4ee4\u662fls-ld.*|grep-vE^d\uff0c\u67e5\u770b\u9690\u85cf\u76ee\u5f55\u7684\u547d\u4ee4\u662fls-ld.*|grep-vE^-\u3002<\/p>\n

\n

ls<\/span> -ld .* |grep -vE ^d<\/span> #for file<\/span>\nls -ld .* |grep -vE ^-<\/span> #for directory<\/span>\n<\/span><\/span><\/span><\/code><\/pre>\n<\/p>\n

Gnome\u6587\u4ef6\u7ba1\u7406\u5668\u67e5\u770b\u9690\u85cf\u6587\u4ef6<\/p>\n

\u9690\u85cf\u6587\u4ef6\u4e5f\u53ef\u4ee5\u5728\u6587\u4ef6\u7ba1\u7406\u5668\u4e2d\u67e5\u770b\u3002\u6253\u5f00\u6587\u4ef6\u7ba1\u7406\u5668\u540elinux \u5220\u9664\u6587\u4ef6\uff0c\u8f6c\u5165\u7a97\u53e3\u53f3\u4e0a\u89d2...\u67e5\u770b\u83dc\u5355\u3002\u83dc\u5355\u4e2d\uff0c\u9009\u4e2d\u663e\u793a\u9690\u85cf\u6587\u4ef6\u9009\u9879\u5bf9\u9762\u7684\u6846\u3002<\/p>\n

\u5982\u4eca\u60a8\u5c06\u80fd\u5426\u5728\u6587\u4ef6\u7ba1\u7406\u5668\u4e2d\u89c1\u5230\u9690\u85cf\u7684\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u3002\u4ee5\u70b9.\u5b57\u7b26\u5f00\u5934\u7684\u6587\u4ef6\u662f\u9690\u85cf\u6587\u4ef6\u3002<\/p>\n

\u5728Linux\u6587\u4ef6\u7ba1\u7406\u5668\u4e2d\u8fd8\u6709\u4e00\u4e2a\u9ed8\u8ba4\u5feb\u6377\u65b9\u6cd5\u53ef\u7528\u4e8e\u67e5\u770b\u9690\u85cf\u6587\u4ef6\u3002\u6253\u5f00\u6587\u4ef6\u7ba1\u7406\u5668\uff0c\u4e4b\u540e\u6309\u5feb\u6377\u952eCtrl+H\u3002<\/p>\n

Ctrl+H<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728windows\u53ef\u4ee5\u67e5\u770b\u9690\u85cf\u7684\u6587\u4ef6\u3002\u5728Linux\u4e2d\u4e5f\u53ef\u4ee5\u67e5\u770b\u9690\u85cf\u6587\u4ef6\u4e14\u975e\u5e38\u5bb9\u6613\u3002\u4f46\u662f\u60a8\u4f1a\u770b\u5230\u5f53\u524d\u76ee\u5f55\u7684\u6240\u6709\u9690\u85cf\u6587\u4ef6\u548c\u666e\u901a\u6587\u4ef6\u3002\u547d\u4ee4\u4ec5\u67e5\u770b\u9690\u85cf\u6587\u4ef6\u547d\u4ee4\u67e5\u770b\u9690\u85cf\u6587\u4ef6\u76ee\u5f55\u533a\u5206\u7c7b\u578b\u5426\u5219\uff0cls\u547d\u4ee4\u4e5f\u4f1a\u663e\u793a\u9690\u85cf\u6587\u4ef6\u5939\u5185\u90e8\u7684\u5185\u5bb9\u3002\u547d\u4ee4\u4ec5\u663e\u793a\u9690\u85cf\u6587\u4ef6\u76ee\u5f55\u53ea\u663e\u793a\u9690\u85cf\u6587\u4ef6\u800c\u4e0d\u663e\u793a\u9690\u85cf\u76ee\u5f55\u975e\u5e38\u5bb9\u6613\u3002\u6587\u4ef6\u7ba1\u7406\u5668\u67e5\u770b\u9690\u85cf\u6587\u4ef6\u9690\u85cf\u6587\u4ef6\u4e5f\u53ef\u4ee5\u5728\u6587\u4ef6\u7ba1\u7406\u5668\u4e2d\u67e5\u770b\u3002<\/p>\n","protected":false},"author":1,"featured_media":273658,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-273657","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/273657","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=273657"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/273657\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/273658"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=273657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=273657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=273657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}