{"id":18147,"date":"2024-11-18T10:12:14","date_gmt":"2024-11-18T02:12:14","guid":{"rendered":"https:\/\/fwq.ai\/blog\/18147\/"},"modified":"2024-11-18T10:12:14","modified_gmt":"2024-11-18T02:12:14","slug":"linux%e6%80%8e%e4%b9%88%e6%98%be%e7%a4%ba%e9%9a%90%e8%97%8f%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/18147\/","title":{"rendered":"linux\u600e\u4e48\u663e\u793a\u9690\u85cf\u6587\u4ef6"},"content":{"rendered":"<blockquote><p>\n  \u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u6cd5\u5728 linux \u4e2d\u663e\u793a\u9690\u85cf\u6587\u4ef6\uff1a\u4f7f\u7528 ls \u547d\u4ee4\uff1als -a \u6216 ls -al\uff1b\u4f7f\u7528 grep \u547d\u4ee4\uff1als | grep .\uff1b\u4f7f\u7528 find \u547d\u4ee4\uff1afind . -name &#8220;.*&#8221;\uff1b\u4f7f\u7528\u6587\u4ef6\u7ba1\u7406\u5668\uff1a\u901a\u8fc7\u542f\u7528\u663e\u793a\u9690\u85cf\u6587\u4ef6\u7684\u9009\u9879\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202406\/04\/2024060409541780273.jpg\" class=\"aligncenter\" title=\"linux\u600e\u4e48\u663e\u793a\u9690\u85cf\u6587\u4ef6\u63d2\u56fe\" alt=\"linux\u600e\u4e48\u663e\u793a\u9690\u85cf\u6587\u4ef6\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u663e\u793a Linux \u4e2d\u7684\u9690\u85cf\u6587\u4ef6<\/strong><\/p>\n<p>\u5728 Linux \u4e2d\uff0c\u9690\u85cf\u6587\u4ef6\u4ee5\u70b9\uff08.\uff09\u5f00\u5934\u3002\u8fd9\u8868\u793a\u8fd9\u4e9b\u6587\u4ef6\u5bf9\u4e8e\u6807\u51c6 ls \u547d\u4ee4\u662f\u4e0d\u53ef\u89c1\u7684\u3002\u6709\u51e0\u79cd\u65b9\u6cd5\u53ef\u4ee5\u663e\u793a\u9690\u85cf\u6587\u4ef6\uff1a<\/p>\n<p><strong>\u4f7f\u7528 ls \u547d\u4ee4\uff1a<\/strong><\/p>\n<ul>\n<li>ls -a \u663e\u793a\u6240\u6709\u6587\u4ef6\uff0c\u5305\u62ec\u9690\u85cf\u6587\u4ef6\u3002<\/li>\n<li>ls -al \u663e\u793a\u6240\u6709\u6587\u4ef6\uff0c\u5305\u62ec\u9690\u85cf\u6587\u4ef6\uff0c\u5e76\u663e\u793a\u8be6\u7ec6\u4fe1\u606f\uff08\u4f8b\u5982\u6587\u4ef6\u7c7b\u578b\u548c\u5927\u5c0f\uff09\u3002<\/li>\n<\/ul>\n<p><strong>\u4f7f\u7528 grep \u547d\u4ee4\uff1a<\/strong><\/p>\n<ul>\n<li>ls | grep . \u67e5\u627e\u4ee5\u70b9\u5f00\u5934\u7684\u6587\u4ef6\u540d\u3002<\/li>\n<li>ls | grep -e &#8216;..*&#8217; \u67e5\u627e\u4ee5\u4e24\u4e2a\u70b9\u5f00\u5934\u7684\u6587\u4ef6\u540d\uff08\u7528\u4e8e\u5907\u4efd\u6587\u4ef6\uff09\u3002<\/li>\n<\/ul>\n<p><strong>\u4f7f\u7528 find \u547d\u4ee4\uff1a<\/strong><\/p>\n<ul>\n<li>find . -name &#8220;.*&#8221; \u67e5\u627e\u5f53\u524d\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u9690\u85cf\u6587\u4ef6\u3002<\/li>\n<li>find . -name &#8220;.file&#8221; \u67e5\u627e\u540d\u4e3a &#8220;.file&#8221; \u7684\u9690\u85cf\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<p><strong>\u4f7f\u7528\u6587\u4ef6\u7ba1\u7406\u5668\uff1a<\/strong><\/p>\n<p>\u5927\u591a\u6570 Linux \u6587\u4ef6\u7ba1\u7406\u5668\uff08\u4f8b\u5982 Nautilus\u3001Dolphin \u548c Thunar\uff09\u90fd\u5141\u8bb8\u60a8\u901a\u8fc7\u542f\u7528\u4e00\u4e2a\u9009\u9879\u6765\u663e\u793a\u9690\u85cf\u6587\u4ef6\u3002\u901a\u5e38\u53ef\u4ee5\u5728\u89c6\u56fe\u6216\u9996\u9009\u9879\u83dc\u5355\u4e2d\u627e\u5230\u6b64\u9009\u9879\u3002<\/p>\n<p><strong>\u6ce8\u610f\u4e8b\u9879\uff1a<\/strong><\/p>\n<ul>\n<li>\u66f4\u6539\u9690\u85cf\u6587\u4ef6\u7684\u540d\u79f0\u6216\u5185\u5bb9\u53ef\u80fd\u4f1a\u5f71\u54cd\u7a0b\u5e8f\u7684\u884c\u4e3a\u3002<\/li>\n<li>\u5efa\u8bae\u4e0d\u8981\u66f4\u6539\u7cfb\u7edf\u9690\u85cf\u6587\u4ef6\uff0c\u56e0\u4e3a\u5b83\u4eec\u5bf9\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u6b63\u5e38\u8fd0\u884c\u81f3\u5173\u91cd\u8981\u3002<\/li>\n<li>\u907f\u514d\u4ece\u4e0d\u4fe1\u4efb\u7684\u6765\u6e90\u4e0b\u8f7d\u9690\u85cf\u6587\u4ef6\uff0c\u56e0\u4e3a\u5b83\u53ef\u80fd\u5305\u542b\u6076\u610f\u8f6f\u4ef6\u6216\u5176\u4ed6\u5a01\u80c1\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u663e\u793a\u9690\u85cf\u6587\u4ef6\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u6cd5\u5728 linux \u4e2d\u663e\u793a\u9690\u85cf\u6587\u4ef6\uff1a\u4f7f\u7528 ls \u547d\u4ee4\uff1als -a \u6216 ls -al\uff1b\u4f7f\u7528 grep \u547d\u4ee4\uff1als | grep .\uff1b\u4f7f\u7528 find \u547d\u4ee4\uff1afind . -name &#8220;.*&#8221;\uff1b\u4f7f\u7528\u6587\u4ef6\u7ba1\u7406\u5668\uff1a\u901a\u8fc7\u542f\u7528\u663e\u793a\u9690\u85cf\u6587\u4ef6\u7684\u9009\u9879\u3002 \u5982\u4f55\u663e\u793a Linux \u4e2d\u7684\u9690\u85cf\u6587\u4ef6 \u5728 Linux \u4e2d\uff0c\u9690\u85cf\u6587\u4ef6\u4ee5\u70b9\uff08.\uff09\u5f00\u5934\u3002\u8fd9\u8868\u793a\u8fd9\u4e9b\u6587\u4ef6\u5bf9\u4e8e\u6807\u51c6 ls \u547d\u4ee4\u662f\u4e0d\u53ef\u89c1\u7684\u3002\u6709\u51e0\u79cd\u65b9\u6cd5\u53ef\u4ee5\u663e\u793a\u9690\u85cf\u6587\u4ef6\uff1a \u4f7f\u7528 ls \u547d\u4ee4\uff1a ls -a \u663e\u793a\u6240\u6709\u6587\u4ef6\uff0c\u5305\u62ec\u9690\u85cf\u6587\u4ef6\u3002 ls -al \u663e\u793a\u6240\u6709\u6587\u4ef6\uff0c\u5305\u62ec\u9690\u85cf\u6587\u4ef6\uff0c\u5e76\u663e\u793a\u8be6\u7ec6\u4fe1\u606f\uff08\u4f8b\u5982\u6587\u4ef6\u7c7b\u578b\u548c\u5927\u5c0f\uff09\u3002 \u4f7f\u7528 grep \u547d\u4ee4\uff1a ls | grep . \u67e5\u627e\u4ee5\u70b9\u5f00\u5934\u7684\u6587\u4ef6\u540d\u3002 ls | grep -e &#8216;..*&#8217; \u67e5\u627e\u4ee5\u4e24\u4e2a\u70b9\u5f00\u5934\u7684\u6587\u4ef6\u540d\uff08\u7528\u4e8e\u5907\u4efd\u6587\u4ef6\uff09\u3002 \u4f7f\u7528 find \u547d\u4ee4\uff1a find . [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-18147","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/18147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=18147"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/18147\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=18147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=18147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=18147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}