{"id":107096,"date":"2026-09-19T00:24:34","date_gmt":"2026-09-18T16:24:34","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/107096.html"},"modified":"2026-09-19T00:24:34","modified_gmt":"2026-09-18T16:24:34","slug":"linux-day8-fhs%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e5%b1%82%e6%ac%a1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/107096.html","title":{"rendered":"Linux Day8\u2014\u2014FHS\u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21"},"content":{"rendered":"<p>&#8212;<\/p>\n<p>type: learning-note<\/p>\n<p>title: Linux&#xff1a;FHS \u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21<\/p>\n<p>date: 2026-09-18<\/p>\n<p>description:FHS&#xff08;\u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21\u6807\u51c6&#xff09;&#xff1a;\u5b9a\u4e49\u4e0e\u4e3a\u4ec0\u4e48\u9700\u8981\u3001man hier \u600e\u4e48\u67e5\u3001\u6839\u76ee\u5f55 22 \u6761\u76ee &#061;19 \u6807\u51c6 &#043;3 \u672c\u673a\u79c1\u8d27\u3001\u516d\u4e2a\u91cd\u70b9\u76ee\u5f55&#xff08;\/etc \/var \/usr \/proc \/home \/bin&#xff09;\u3001\u8f6f\u94fe\u63a5\u4e0e UsrMerge\u3001ls -l\u300c\u5927\u5c0f\u300d\u5217\u7684\u56db\u79cd\u542b\u4e49<\/p>\n<p>&#8212;<\/p>\n<p>\u00a0<\/p>\n<p># 2026-09-18 \u5b66\u4e60\u7b14\u8bb0<\/p>\n<p>\u00a0<\/p>\n<p>&gt; &#x1f4cc; \u6211\u7684 GitHub&#xff1a;https:\/\/github.com\/AR-firefly<\/p>\n<p>\u00a0<\/p>\n<p>## \u7b14\u8bb0\u533a<\/p>\n<p>\u00a0<\/p>\n<p>### \u6838\u5fc3\u89c2\u70b9<\/p>\n<p>\u00a0<\/p>\n<p>**FHS &#061; Filesystem Hierarchy Standard&#xff08;\u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21\u6807\u51c6&#xff09;**<\/p>\n<p>\u00a0<\/p>\n<p>\u5b83\u89c4\u5b9a\u7684\u662f**\u5177\u4f53\u7684\u4e1c\u897f**&#xff1a;&#096;\/&#096; \u5e95\u4e0b\u8be5\u6709\u54ea\u4e9b\u76ee\u5f55\u3001\u6bcf\u4e2a\u76ee\u5f55\u653e\u4ec0\u4e48\u3002<\/p>\n<p>\u00a0<\/p>\n<p>\u26a0\ufe0f \u4e0d\u662f&#034;\u89c4\u5b9a\u4e86\u6587\u4ef6\u7cfb\u7edf\u3001\u5c42\u6b21\u3001\u6807\u51c6\u8fd9\u4e09\u4e2a\u8bcd&#034;\u2014\u2014\u90a3\u4e09\u4e2a\u8bcd\u662f**\u540d\u5b57\u5728\u63cf\u8ff0\u5b83\u81ea\u5df1**&#xff1a;<\/p>\n<p>\u00a0<\/p>\n<p>| \u8bcd | \u610f\u601d | \u8bf4\u7684\u662f |<\/p>\n<p>| &#8212;&#8212;&#8212;- | &#8212;&#8212;&#8212;- | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; |<\/p>\n<p>| Filesystem | \u6587\u4ef6\u7cfb\u7edf | \u7ba1\u54ea\u4e2a\u9886\u57df |<\/p>\n<p>| Hierarchy | \u5c42\u6b21\u3001\u5c42\u7ea7 | \u600e\u4e48\u7ec4\u7ec7&#xff08;\u6811\u5f62&#xff09; |<\/p>\n<p>| Standard | \u6807\u51c6 | \u4ec0\u4e48\u6027\u8d28&#xff08;\u5927\u5bb6\u7ea6\u5b9a\u597d\u7528\u540c\u4e00\u5957&#xff09; |<\/p>\n<p>\u00a0<\/p>\n<p>**&#034;\u6587\u4ef6\u7cfb\u7edf&#034;\u8fd9\u4e2a\u8bcd\u6709\u4e24\u5c42\u610f\u601d**&#xff08;\u4eca\u5929\u53ea\u7528\u7b2c\u4e00\u5c42&#xff09;&#xff1a;<\/p>\n<p>\u00a0<\/p>\n<p>| \u5c42 | \u6307\u4ec0\u4e48 | \u4ec0\u4e48\u65f6\u5019\u5b66 |<\/p>\n<p>| &#8212; | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- | &#8212;&#8212;&#8212;&#8212;&#8212;- |<\/p>\n<p>| 1 | \u4ece &#096;\/&#096; \u5f00\u59cb\u7684\u90a3\u4e00\u6574\u68f5**\u76ee\u5f55\u6811** | \u4eca\u5929 |<\/p>\n<p>| 2 | \u6587\u4ef6\u5728**\u78c1\u76d8\u4e0a**\u7684\u7ec4\u7ec7\u683c\u5f0f&#xff08;ext4 \u7b49&#xff09; | \u7b2c 2 \u5929&#xff08;inode&#xff09; |<\/p>\n<p>\u00a0<\/p>\n<p>### \u4e3a\u4ec0\u4e48\u8981 FHS<\/p>\n<p>\u00a0<\/p>\n<p>**\u79e6\u59cb\u7687\u7edf\u4e00\u5ea6\u91cf\u8861**\u2014\u2014\u7edf\u4e00\u4e4b\u524d&#xff0c;\u5404\u56fd\u5c3a\u5b50\u957f\u77ed\u4e0d\u4e00&#xff0c;\u540c\u4e00\u4e2a&#034;\u4e09\u5c3a&#034;\u5230\u54ea\u90fd\u4e0d\u662f\u4e00\u56de\u4e8b\u3002<\/p>\n<p>\u00a0<\/p>\n<p>FHS \u4e4b\u524d\u4e5f\u662f\u8fd9\u6837&#xff1a;\u540c\u6837\u662f&#034;\u914d\u7f6e\u653e\u54ea&#034;&#xff0c;\u5404\u5bb6\u53d1\u884c\u7248\u5404\u5199\u5404\u7684\u3002\u7edf\u4e00\u4e4b\u540e&#xff1a;<\/p>\n<p>\u00a0<\/p>\n<p>&#8211; \u811a\u672c\u3001\u8f6f\u4ef6\u6362\u53f0\u673a\u5668\u4e0d\u7528\u91cd\u5199<\/p>\n<p>&#8211; \u4eba\u6362\u7cfb\u7edf\u4e0d\u7528\u91cd\u65b0\u5b66&#034;\u4e1c\u897f\u5728\u54ea&#034;<\/p>\n<p>\u00a0<\/p>\n<p>**\u4e0d\u7edf\u4e00\u4f1a\u51fa\u7684\u5177\u4f53\u4e71\u5b50**&#xff1a;\u4f60\u5199\u4e86\u4e2a\u811a\u672c &#096;cat \/var\/log\/syslog | grep ERROR&#096;&#xff0c;\u5728**\u81ea\u5df1\u8fd9\u53f0**\u8dd1\u901a\u4e86&#xff1b;\u53d1\u7ed9\u540c\u5b66&#xff0c;\u4ed6\u7684\u53d1\u884c\u7248\u628a\u65e5\u5fd7\u653e\u5728\u522b\u5904&#xff0c;\u811a\u672c\u7acb\u523b\u6b7b&#xff1a;<\/p>\n<p>\u00a0<\/p>\n<p>&#096;&#096;&#096;<\/p>\n<p>cat: \/var\/log\/syslog: No such file or directory<\/p>\n<p>&#096;&#096;&#096;<\/p>\n<p>\u00a0<\/p>\n<p>**\u811a\u672c\u6ca1\u9519\u3001\u4e5f\u6ca1\u574f&#xff0c;\u5c31\u662f&#034;\u4e1c\u897f\u4e0d\u5728\u90a3\u4e2a\u4f4d\u7f6e&#034;\u3002**<\/p>\n<p>\u00a0<\/p>\n<p>### \u6839\u76ee\u5f55\u5168\u666f&#xff1a;22 \u6761\u76ee &#061; 19 \u6807\u51c6 &#043; 3 \u79c1\u8d27<\/p>\n<p>\u00a0<\/p>\n<p>&#096;&#096;&#096;<\/p>\n<p>ls \/ \u7684 22 \u4e2a\u6761\u76ee&#xff1a;<\/p>\n<p>bin boot dev etc home init lib lib64 lost&#043;found media mnt opt<\/p>\n<p>proc root run sbin snap srv sys tmp usr var<\/p>\n<p>&#096;&#096;&#096;<\/p>\n<p>\u00a0<\/p>\n<p>| \u7c7b\u522b | \u6570\u91cf | \u662f\u8c01 |<\/p>\n<p>| &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; | &#8212;&#8212; | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; |<\/p>\n<p>| **FHS \u89c4\u5b9a\u7684\u6807\u51c6\u76ee\u5f55** | **19** | &#096;\/bin&#096; &#096;\/boot&#096; &#096;\/dev&#096; &#096;\/etc&#096; &#096;\/home&#096; &#096;\/lib&#096; &#096;\/lost&#043;found&#096; &#096;\/media&#096; &#096;\/mnt&#096; &#096;\/opt&#096; &#096;\/proc&#096; &#096;\/root&#096; &#096;\/run&#096; &#096;\/sbin&#096; &#096;\/srv&#096; &#096;\/sys&#096; &#096;\/tmp&#096; &#096;\/usr&#096; &#096;\/var&#096; |<\/p>\n<p>| **\u672c\u673a\u7279\u6709\u7684**&#xff08;FHS \u6ca1\u6709&#xff09; | **3** | &#096;\/init&#096;&#xff08;WSL \u7684\u542f\u52a8\u7a0b\u5e8f&#xff0c;**\u662f\u6587\u4ef6\u4e0d\u662f\u76ee\u5f55**&#xff09;\u00b7 &#096;\/lib64&#096;&#xff08;\u8f6f\u94fe\u63a5\u2192&#096;usr\/lib64&#096;&#xff09;\u00b7 &#096;\/snap&#096;&#xff08;Ubuntu \u7684 snap \u5305\u7cfb\u7edf&#xff09; |<\/p>\n<p>\u00a0<\/p>\n<p>**\u600e\u4e48\u77e5\u9053\u90a3 3 \u4e2a\u662f&#034;\u79c1\u8d27&#034;**&#xff1a;&#096;man hier&#096; \u91cc**\u67e5\u4e0d\u5230\u5b83\u4eec**\u300219 vs 22 \u5dee\u51fa\u6765\u7684&#xff0c;\u5c31\u662f\u4e0d\u9075\u5b88 FHS \u7684&#034;\u672c\u5730\u52a0\u6599&#034;\u3002<\/p>\n<p>\u00a0<\/p>\n<p>&gt; **&#096;\/lost&#043;found&#096; \u662f\u6807\u51c6\u76ee\u5f55&#xff0c;\u4e0d\u662f\u79c1\u8d27**\u3002&#096;man hier&#096; \u91cc\u6709\u5b83&#xff1a;<\/p>\n<p>&gt; &#096;This directory contains items lost in the filesystem.&#096; \u2014\u2014 \u6587\u4ef6\u7cfb\u7edf\u51fa\u95ee\u9898\u540e&#xff0c;fsck \u627e\u56de\u7684\u788e\u7247\u653e\u8fdb\u8fd9\u91cc\u3002<\/p>\n<p>\u00a0<\/p>\n<p>### \u5173\u952e\u65b9\u6cd5\/\u6d41\u7a0b<\/p>\n<p>\u00a0<\/p>\n<p>**\u2460 \u67e5\u4e00\u4e2a\u76ee\u5f55\u662f\u5e72\u4ec0\u4e48\u7684 \u2014\u2014 \u4e09\u6b65\u8d70**<\/p>\n<p>\u00a0<\/p>\n<p>| \u6b65 | \u600e\u4e48\u505a | \u5b83\u80fd\u544a\u8bc9\u4f60\u4ec0\u4e48 |<\/p>\n<p>| &#8212; | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; |<\/p>\n<p>| 1 | \u5728 &#096;man hier&#096; \u91cc\u641c\u5b83 | **\u662f\u6807\u51c6\u76ee\u5f55** \u2192 \u76f4\u63a5\u7ed9\u4f60\u5b98\u65b9\u5b9a\u4e49 |<\/p>\n<p>| 2 | **\u641c\u4e0d\u5230** | \u8fd9\u4e2a&#034;\u641c\u4e0d\u5230&#034;**\u672c\u8eab\u5c31\u662f\u5173\u952e\u4fe1\u606f**&#xff1a;\u5b83**\u4e0d\u662f FHS \u6807\u51c6\u76ee\u5f55** |<\/p>\n<p>| 3 | &#096;ls&#096; \u8fdb\u53bb\u770b | \u770b\u5230\u7684\u662f\u300c**\u8fd9\u53f0\u673a\u5668\u5b9e\u9645**\u653e\u4e86\u4ec0\u4e48\u300d\u2014\u2014\u8f85\u52a9&#xff0c;\u66ff\u4ee3\u4e0d\u4e86\u7b2c 1 \u6b65 |<\/p>\n<p>\u00a0<\/p>\n<p>\u26a0\ufe0f **&#034;\u67e5\u4e0d\u5230&#034;\u8981\u518d\u5f80\u4e0b\u5206\u4e00\u5c42**&#xff1a;&#096;man hier&#096; \u6ca1\u6709 \u2260 &#034;\u53ea\u6709\u4f60\u4e00\u53f0\u6709&#034;\u3002&#096;\/snap&#096; \u662f**\u6240\u6709 Ubuntu \u90fd\u6709**\u3001&#096;\/init&#096; \u662f**\u6240\u6709 WSL \u90fd\u6709**\u3002\u8981\u95ee&#034;\u5b83\u662f\u8c01\u7684&#034;&#xff0c;\u5f97**\u53e6\u5916\u67e5**\u3002<\/p>\n<p>\u00a0<\/p>\n<p>**\u2461 \u67e5 FHS \u672c\u8eab**&#xff1a;&#096;man hier&#096;<\/p>\n<p>\u00a0<\/p>\n<p>&#096;&#096;&#096;<\/p>\n<p>hier(7) Miscellaneous Information Manual<\/p>\n<p>NAME<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0hier &#8211; description of the filesystem hierarchy<\/p>\n<p>&#096;&#096;&#096;<\/p>\n<p>\u00a0<\/p>\n<p>&#8211; &#096;hier&#096; &#061; hierarchy \u780d\u6389\u540e\u534a\u622a&#xff08;man \u6587\u6863\u7684\u540d\u5b57\u90fd\u5f88\u77ed&#xff09;<\/p>\n<p>&#8211; &#096;(7)&#096; &#061; man \u624b\u518c\u7684**\u7ae0\u8282\u53f7**&#xff08;7 &#061; \u6742\u9879 \/ \u7ea6\u5b9a\u7c7b&#xff09;<\/p>\n<p>&#8211; &#096;description&#096; &#061; \u63cf\u8ff0\u3001\u8bf4\u660e<\/p>\n<p>&#8211; &#096;of the filesystem hierarchy&#096; &#061; &#034;\u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21\u7ed3\u6784\u7684&#034;<\/p>\n<p>\u00a0<\/p>\n<p>**\u9000\u51fa**&#xff1a;\u6309 &#096;q&#096;&#xff08;quit&#xff09;\u3002&#096;man&#096; \u7528\u7684\u9605\u8bfb\u5668\u548c &#096;less&#096; \u662f\u540c\u4e00\u4e2a&#xff0c;\u4e0d\u6309 &#096;q&#096; \u4f1a\u5361\u5728\u91cc\u9762\u51fa\u4e0d\u6765\u3002<\/p>\n<p>\u00a0<\/p>\n<p>**\u2462 &#096;man&#096; \u7684\u4e09\u79cd\u7528\u6cd5**&#xff08;\u5206\u60c5\u51b5&#xff0c;\u4e0d\u662f\u4e00\u5f8b &#096;man&#096;&#xff09;<\/p>\n<p>\u00a0<\/p>\n<p>| \u4f60\u4e0d\u8ba4\u8bc6\u7684\u662f | \u7528\u4ec0\u4e48\u67e5 | \u4f8b\u5b50 |<\/p>\n<p>| &#8212;&#8212;&#8212;&#8212; | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; | &#8212;&#8212;&#8212;&#8212;&#8211; |<\/p>\n<p>| **\u9876\u7ea7\u76ee\u5f55** | &#096;man hier&#096; | &#096;man hier&#096; |<\/p>\n<p>| **\u547d\u4ee4** | &#096;man \u547d\u4ee4\u540d&#096; | &#096;man ls&#096; |<\/p>\n<p>| **\u914d\u7f6e\u6587\u4ef6** | &#096;man 5 \u540d\u5b57&#096;&#xff08;**\u7b2c 5 \u8282** &#061; \u6587\u4ef6\u683c\u5f0f&#xff09; | &#096;man 5 passwd&#096; |<\/p>\n<p>\u00a0<\/p>\n<p>**\u8fb9\u754c**&#xff1a;&#096;man hier&#096; **\u53ea\u7ba1 FHS \u5217\u51fa\u7684\u76ee\u5f55**\u3002&#096;\/snap&#096; \u90a3\u79cd\u79c1\u8d27&#xff0c;&#096;man hier&#096; \u548c &#096;man snap&#096; \u90fd\u67e5\u4e0d\u5230\u2014\u2014\u5f97\u53bb\u67e5\u53d1\u884c\u7248\u6587\u6863\u3002**\u6ca1\u6709\u4efb\u4f55\u4e00\u4e2a\u547d\u4ee4\u80fd\u67e5\u6240\u6709\u4e1c\u897f\u3002**<\/p>\n<p>\u00a0<\/p>\n<p>**\u2463 \u7ba1\u9053\u7684\u590d\u7528**&#xff1a;&#096;man hier | grep &#034;\/srv&#034;&#096;<\/p>\n<p>\u00a0<\/p>\n<p>&#8211; &#096;man hier&#096; &#061; \u6253\u5f00\u6587\u6863<\/p>\n<p>&#8211; &#096;|&#096; &#061; \u7ba1\u9053&#xff1a;\u628a\u5de6\u8fb9\u547d\u4ee4\u7684\u8f93\u51fa\u5f53\u4f5c\u53f3\u8fb9\u547d\u4ee4\u7684\u8f93\u5165<\/p>\n<p>&#8211; &#096;grep &#034;\/srv&#034;&#096; &#061; \u6311\u51fa\u542b &#096;\/srv&#096; \u7684\u884c<\/p>\n<p>\u00a0<\/p>\n<p>\u26a0\ufe0f **&#096;grep&#096; \u662f\u6a21\u7cca\u5339\u914d**&#xff0c;\u4f1a\u591a\u547d\u4e2d&#xff1a;&#096;man hier | grep &#034;\/opt&#034;&#096; \u5b9e\u9645\u8f93\u51fa **5 \u884c**&#xff08;\u6d89\u53ca 3 \u4e2a\u76ee\u5f55\u6761\u76ee&#xff1a;&#096;\/opt&#096;\u3001&#096;\/etc\/opt&#096;\u3001&#096;\/var\/opt&#096;\u2014\u2014\u540e\u4e24\u4e2a\u7684**\u8bf4\u660e\u884c**\u91cc\u4e5f\u542b &#096;\/opt&#096; \u4e09\u4e2a\u5b57\u7b26&#xff09;&#xff1b;&#096;grep &#034;\/run&#034;&#096; \u8f93\u51fa **3 \u884c**&#xff08;&#096;\/run&#096;\u3001&#096;\/var\/run&#096;&#xff09;\u3002\u8981\u7cbe\u786e\u5339\u914d\u5f97\u518d\u52a0\u6761\u4ef6&#xff08;**\u6ca1\u5b66&#xff0c;\u7528\u5230\u518d\u8bf4**&#xff09;\u3002<\/p>\n<p>\u00a0<\/p>\n<p>### \u516d\u4e2a\u91cd\u70b9\u76ee\u5f55\u901f\u67e5<\/p>\n<p>\u00a0<\/p>\n<p>| \u76ee\u5f55 | \u653e\u4ec0\u4e48 | \u6211\u7684\u4e00\u53e5\u8bdd |<\/p>\n<p>| &#8212;&#8212;&#8212;&#8212; | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; |<\/p>\n<p>| &#096;\/etc&#096; | **\u914d\u7f6e**&#xff08;\u57fa\u672c\u4e0d\u53d8&#xff09; | \u91cc\u9762\u7684\u4e1c\u897f\u5c31\u662f\u914d\u7f6e&#xff0c;**\u4e0d\u7ba1\u6709\u6ca1\u6709 &#096;.conf&#096; \u540e\u7f00** |<\/p>\n<p>| &#096;\/var&#096; | **\u53ef\u53d8\u6570\u636e**&#xff08;\u65e5\u5fd7\u7b49&#xff0c;\u4e00\u76f4\u6da8&#xff09; | &#034;\u5565\u6742\u4e03\u6742\u516b\u7684\u90fd\u5f80\u91cc\u9762\u9001&#034;\u2014\u2014**\u78c1\u76d8\u6ee1\u5148\u67e5\u8fd9** |<\/p>\n<p>| &#096;\/usr&#096; | **\u53d1\u884c\u7248\u7ed9\u7684\u8f6f\u4ef6**&#xff08;\u53ef\u5171\u4eab\u3001\u53ea\u8bfb&#xff09; | \u8c01\u88c5\u540c\u7248\u672c Ubuntu \u90fd\u6709&#xff0c;**\u4e00\u6a21\u4e00\u6837** |<\/p>\n<p>| &#096;\/usr\/local&#096; | **\u672c\u673a\u4e13\u5c5e\u7684\u7a0b\u5e8f**&#xff08;\u81ea\u5df1\u88c5\u7684&#xff09; | &#034;\u5927\u5bb6\u90fd\u6709\u7684&#034; vs &#034;\u6211\u72ec\u6709\u7684&#034;\u2014\u2014**&#096;local&#096; &#061; \u672c\u673a\u72ec\u6709** |<\/p>\n<p>| &#096;\/proc&#096; | **\u5185\u6838\u7a97\u53e3**&#xff08;\u4f2a\u6587\u4ef6\u7cfb\u7edf&#xff09; | \u4e0d\u5360\u78c1\u76d8&#xff0c;\u91cc\u9762\u662f**\u5185\u6838\u5b9e\u65f6\u751f\u6210**\u7684 |<\/p>\n<p>| &#096;\/home&#096; | **\u5bb6\u76ee\u5f55**&#xff08;FHS \u91cc\u6807 optional&#xff09; | \u6bcf\u4e2a\u7528\u6237\u7684\u79c1\u4eba\u7a7a\u95f4 |<\/p>\n<p>| &#096;\/bin&#096; | **\u547d\u4ee4**&#xff08;\u7cfb\u7edf\u4fee\u590d\u65f6\u4e5f\u8981\u80fd\u7528&#xff09; | \u5b83\u662f**\u8f6f\u94fe\u63a5**&#xff0c;\u6307\u5411 &#096;\/usr\/bin&#096; |<\/p>\n<p>\u00a0<\/p>\n<p>**\u51e0\u6761\u539f\u6587\u4f9d\u636e**&#xff08;&#096;man hier&#096;&#xff09;&#xff1a;<\/p>\n<p>\u00a0<\/p>\n<p>&#8211; &#096;\/etc&#096;&#xff1a;&#096;Contains configuration files which are local to the machine.&#096; \u2014\u2014 &#096;local to the machine&#096; &#061; **\u672c\u673a\u4e13\u5c5e**<\/p>\n<p>&#8211; &#096;\/var&#096;&#xff1a;&#096;This directory contains files which may change in size, such as spool and log files.&#096;<\/p>\n<p>&#8211; &#096;\/var\/log&#096;&#xff1a;&#096;Miscellaneous log files.&#096;<\/p>\n<p>&#8211; &#096;\/usr&#096;&#xff1a;&#096;It should hold only shareable, read-only data, so that it can be mounted by various machines running Linux.&#096;<\/p>\n<p>&#8211; &#096;\/usr\/local&#096;&#xff1a;&#096;This is where programs which are local to the site typically go.&#096;<\/p>\n<p>&#8211; &#096;\/lost&#043;found&#096;&#xff1a;&#096;This directory contains items lost in the filesystem.&#096;<\/p>\n<p>&#8211; &#096;\/proc&#096;&#xff1a;&#096;This is a mount point for the proc filesystem, which provides information about running processes and the kernel.&#096; &#043; &#096;This pseudo-filesystem &#8230;&#096;<\/p>\n<p>&#8211; &#096;\/home&#096;&#xff1a;&#096;&#8230; The structure of this directory depends on local administration decisions (optional).&#096;<\/p>\n<p>&#8211; &#096;\/bin&#096;&#xff1a;&#096;This directory contains executable programs which are needed in single user mode and to bring the system up or repair it.&#096;<\/p>\n<p>\u00a0<\/p>\n<p>**\u4e3a\u4ec0\u4e48\u8fd9\u4e48\u5206**&#xff1a;<\/p>\n<p>\u00a0<\/p>\n<p>&#8211; &#096;\/etc&#096; vs &#096;\/var&#096; \u2192 \u6309\u300c**\u53d8\u4e0d\u53d8**\u300d\u5288\u5f00&#xff08;\u914d\u7f6e\u4e0d\u52a8 \/ \u65e5\u5fd7\u4e00\u76f4\u6da8&#xff09;<\/p>\n<p>&#8211; &#096;\/usr&#096; \u2192 \u6309\u300c**\u53ef\u5171\u4eab\u3001\u53ea\u8bfb**\u300d\u6765&#xff08;\u591a\u53f0\u673a\u5668\u5171\u7528\u4e00\u4efd&#xff09;<\/p>\n<p>&#8211; &#096;\/bin&#096; \u2192 \u6309\u300c**\u7cfb\u7edf\u5feb\u6b7b\u4e86\u4e5f\u5f97\u80fd\u7528**\u300d\u6765&#xff08;\u5355\u7528\u6237\u6a21\u5f0f \/ \u4fee\u590d\u65f6\u8981\u7528&#xff09;<\/p>\n<p>\u00a0<\/p>\n<p>### \u8f6f\u94fe\u63a5\u4e0e UsrMerge<\/p>\n<p>\u00a0<\/p>\n<p>**&#096;ls -l&#096; \u91cc\u7684 &#096;-&gt;&#096; &#061; \u8f6f\u94fe\u63a5**\u3002\u5de6\u8fb9\u662f\u5b83\u81ea\u5df1&#xff0c;\u53f3\u8fb9\u662f\u5b83**\u6307\u5411\u7684\u76ee\u6807**&#xff1a;<\/p>\n<p>\u00a0<\/p>\n<p>&#096;&#096;&#096;<\/p>\n<p>\/bin -&gt; usr\/bin \u5927\u5c0f 7 \u2190 &#039;usr\/bin&#039; \u662f 7 \u4e2a\u5b57\u7b26<\/p>\n<p>\/lib -&gt; usr\/lib \u5927\u5c0f 7<\/p>\n<p>\/lib64 -&gt; usr\/lib64 \u5927\u5c0f 9<\/p>\n<p>\/sbin -&gt; usr\/sbin \u5927\u5c0f 8<\/p>\n<p>&#096;&#096;&#096;<\/p>\n<p>\u00a0<\/p>\n<p>**UsrMerge&#xff08;merged-\/usr&#xff09;**&#xff1a;\u539f\u6765 &#096;\/bin&#096; &#096;\/sbin&#096; &#096;\/lib&#096; \u662f**\u72ec\u7acb\u76ee\u5f55**&#xff0c;\u540e\u6765\u88ab\u5408\u5e76\u8fdb &#096;\/usr&#096;&#xff0c;**\u539f\u4f4d\u6362\u6210\u8f6f\u94fe\u63a5**\u3002<\/p>\n<p>\u00a0<\/p>\n<p>**\u4e3a\u4ec0\u4e48\u8981\u5408\u5e76**&#xff1a;&#096;\/&#096; \u548c &#096;\/usr&#096; \u5206\u5f00\u88ab\u8ba4\u4e3a**\u5197\u4f59**&#xff1b;\u7ba1\u7406\u66f4\u7b80\u5355\u3001\u5bb9\u5668\/\u6c99\u7bb1\u66f4\u597d\u7528\u3002<\/p>\n<p>\u00a0<\/p>\n<p>**\u8001\u8def\u5f84\u4e3a\u4ec0\u4e48\u8fd8\u80fd\u7528**&#xff1a;**\u53ea\u8981\u8f6f\u94fe\u63a5\u8fd8\u5728&#xff0c;&#096;\/bin\/ls&#096; \u5c31\u7167\u6837\u80fd\u7528**\u2014\u2014\u8fd9\u5c31\u662f&#034;\u517c\u5bb9\u6027\u4fdd\u7559&#034;\u3002<\/p>\n<p>\u00a0<\/p>\n<p>### &#096;ls -l&#096;\u300c\u5927\u5c0f\u300d\u90a3\u4e00\u5217&#xff1a;\u542b\u4e49\u968f\u7c7b\u578b\u53d8<\/p>\n<p>\u00a0<\/p>\n<p>| \u7c7b\u578b | \u90a3\u4e00\u5217\u662f | \u4f8b\u5b50 |<\/p>\n<p>| &#8212;&#8212;&#8212;&#8212;&#8211; | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; |<\/p>\n<p>| **\u666e\u901a\u6587\u4ef6** | **\u5185\u5bb9\u7684\u5b57\u8282\u6570** | &#096;\/etc\/passwd&#096; &#061; 1476 |<\/p>\n<p>| **\u76ee\u5f55** | \u76ee\u5f55\u9879\u5360\u7528\u7684**\u5757\u5927\u5c0f**&#xff08;\u901a\u5e38 4096&#xff09; | &#096;\/etc&#096; &#061; 4096 |<\/p>\n<p>| **\u8f6f\u94fe\u63a5** | **\u76ee\u6807\u8def\u5f84\u5b57\u7b26\u4e32\u7684\u5b57\u7b26\u6570** | &#096;\/bin&#096; &#061; **7**&#xff08;&#096;usr\/bin&#096; 7 \u4e2a\u5b57\u7b26&#xff09; |<\/p>\n<p>| **\u4f2a\u6587\u4ef6\u7cfb\u7edf** | **0** \u2014\u2014 \u5b83\u4e0d\u5b58\u78c1\u76d8 | &#096;\/proc&#096; &#061; 0\u3001&#096;\/sys&#096; &#061; 0 |<\/p>\n<p>\u00a0<\/p>\n<p>**\u6240\u4ee5**&#xff1a;&#034;\u5927\u5c0f &#061; 0&#034;**\u4e0d\u7b49\u4e8e**&#034;\u7a7a&#034;&#xff1b;&#034;\u5927\u5c0f &#061; 7&#034;**\u4e0d\u7b49\u4e8e**&#034;7 \u5b57\u8282\u5185\u5bb9&#034;\u3002**\u8fd9\u4e00\u5217\u7684\u542b\u4e49\u53d6\u51b3\u4e8e\u6587\u4ef6\u7c7b\u578b\u3002**<\/p>\n<p>\u00a0<\/p>\n<p>### \u5b9e\u6218\u8bb0\u5f55<\/p>\n<p>\u00a0<\/p>\n<p>**\u6839\u76ee\u5f55**<\/p>\n<p>\u00a0<\/p>\n<p>&#8211; &#096;ls \/&#096; \u2192 22 \u4e2a\u6761\u76ee&#xff08;\u89c1\u4e0a&#xff09;<\/p>\n<p>&#8211; &#096;ls -l \/&#096; \u2192 &#096;dr-xr-xr-x 321\/313\/323 root root 0 &#8230; proc&#096; \u2014\u2014 **\u540c\u4e00\u53f0\u673a\u5668\u8dd1\u4e09\u6b21&#xff0c;\u90a3\u4e2a\u6570\u5b57\u4e09\u6b21\u90fd\u4e0d\u540c**&#xff08;321 \u2192 313 \u2192 323&#xff09;&#xff0c;\u56e0\u4e3a &#096;\/proc&#096; \u662f**\u5b9e\u65f6**\u7684<\/p>\n<p>\u00a0<\/p>\n<p>**\u516d\u4e2a\u76ee\u5f55**<\/p>\n<p>\u00a0<\/p>\n<p>&#8211; &#096;ls \/etc | head -20&#096; \u2192 169 \u9879&#xff0c;&#096;\/etc\/passwd&#096; &#096;\/etc\/group&#096; &#096;\/etc\/shadow&#096; \u7684\u4fee\u6539\u65f6\u95f4\u90fd\u662f **Sep 17**&#xff08;&#061; \u6211\u5efa\u7ec4\u5efa\u7528\u6237\u90a3\u5929&#xff09;<\/p>\n<p>&#8211; &#096;ls \/var&#096; \u2192 13 \u9879&#xff1b;&#096;ls \/var\/log | head -12&#096; \u2192 27 \u9879&#xff1b;&#096;\/var\/log\/syslog&#096; \u6709 **519602 \u5b57\u8282**<\/p>\n<p>&#8211; &#096;ls \/usr&#096; \u2192 10 \u9879&#xff1b;&#096;ls \/usr\/local&#096; \u2192 10 \u9879\u3002**\u6ce8\u610f&#xff1a;&#096;\/usr\/local\/bin&#096; \u662f\u7a7a\u7684&#xff0c;\u4f46 &#096;\/usr\/local\/lib&#096; \u91cc\u6709 &#096;python3.14&#096;\u3001&#096;\/usr\/local\/share&#096; \u91cc\u6709 5 \u9879**\u2014\u2014\u4e0d\u662f&#034;\u5168\u7a7a&#034;<\/p>\n<p>&#8211; &#096;dpkg -S \/usr\/bin\/ls&#096; \u2192 &#096;coreutils-from-uutils: \/usr\/bin\/ls&#096;&#xff1b;&#096;ls \/usr\/bin | wc -l&#096; \u2192 **905**<\/p>\n<p>&#8211; &#096;ls \/proc | head -15&#096; \u2192 \u524d 15 \u5168\u662f\u6570\u5b57&#xff08;**PID**&#xff09;&#xff1b;&#096;cat \/proc\/version&#096; \u2192 &#096;Linux version 6.18.33.2-microsoft-standard-WSL2 &#8230;&#096;<\/p>\n<p>&#8211; &#096;ls \/home&#096; \u2192 &#096;ar-26710&#096; &#096;s1tester2&#096;&#xff08;**\u6ca1\u6709 &#096;s1tester&#096;**\u2014\u2014\u56e0\u4e3a\u5b83\u5f53\u5e74\u662f\u7528\u4e0d\u5e26 &#096;-m&#096; \u7684 &#096;useradd&#096; \u5efa\u7684&#xff09;<\/p>\n<p>&#8211; &#096;echo $HOME&#096; \u2192 &#096;\/home\/ar-26710&#096;&#xff1b;&#096;echo ~&#096; \u2192 \u4e00\u6837<\/p>\n<p>&#8211; &#096;ls \/bin | wc -l&#096; \u2192 **905**&#xff1b;&#096;ls \/usr\/bin | wc -l&#096; \u2192 **905**&#xff08;**\u540c\u4e00\u4e2a\u76ee\u5f55**&#xff09;<\/p>\n<p>\u00a0<\/p>\n<p>**\u8f6f\u94fe\u63a5**<\/p>\n<p>\u00a0<\/p>\n<p>&#8211; &#096;ls -ld \/bin&#096; \u2192 &#096;lrwxrwxrwx &#8230; 7 \/bin -&gt; usr\/bin&#096;<\/p>\n<p>&#8211; &#096;readlink \/bin&#096; \u2192 &#096;usr\/bin&#096;<\/p>\n<p>&#8211; &#096;ls -li \/bin\/ls \/usr\/bin\/ls&#096; \u2192 **inode \u53f7\u90fd\u662f 1935**&#xff08;\u540c\u4e00\u4e2a\u6587\u4ef6&#xff09;<\/p>\n<p>&#8211; &#096;ls -di \/bin\/ \/usr\/bin\/&#096; \u2192 **1471 \/ 1471**&#xff08;\u52a0\u659c\u6760\u5f3a\u5236\u8ddf\u968f&#xff0c;\u8bc1\u660e\u662f\u540c\u4e00\u4e2a\u76ee\u5f55&#xff09;<\/p>\n<p>\u00a0<\/p>\n<p>**\/mnt&#xff08;WSL \u62db\u724c&#xff09;**<\/p>\n<p>\u00a0<\/p>\n<p>&#8211; &#096;ls \/mnt&#096; \u2192 &#096;c&#096; &#096;d&#096; &#096;wsl&#096; &#096;wslg&#096; \u2014\u2014 **Windows \u7684 C \u76d8 D \u76d8\u6302\u5728\u8fd9\u513f**<\/p>\n<p>&#8211; &#096;ls &#034;\/mnt\/d\/\u5b66\u4e60\/AI\u5b66\u4e60\u8ba1\u5212&#034;&#096; \u2192 \u80fd\u770b\u5230 &#096;CLAUDE.md&#096;\u3001&#096;kb&#096;\u3001&#096;\u603b\u5b66\u4e60\u8def\u5f84&#096; \u7b49 **18 \u9879**<\/p>\n<p>&#8211; Windows \u8def\u5f84 &#096;D:\\\\\u5b66\u4e60\\\\AI\u5b66\u4e60\u8ba1\u5212&#096; \u2194 WSL \u8def\u5f84 &#096;\/mnt\/d\/\u5b66\u4e60\/AI\u5b66\u4e60\u8ba1\u5212&#096;<\/p>\n<p>\u00a0<\/p>\n<p>### \u8e29\u7684\u5751<\/p>\n<p>\u00a0<\/p>\n<p>| \u73b0\u8c61 | \u4ec0\u4e48\u60c5\u51b5 | \u600e\u4e48\u5904\u7406 |<\/p>\n<p>| &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- |<\/p>\n<p>| &#096;du -sh \/proc&#096; \u62a5\u4e00\u5806 &#096;Permission denied&#096; | &#096;\/proc&#096; \u91cc\u6df7\u7740\u5927\u91cf**\u53ea\u6709 root \u80fd\u8bfb**\u7684\u4e1c\u897f&#xff08;\u5982 &#096;\/proc\/1\/task\/1\/fd&#096;&#xff09; | **\u62a5\u9519\u662f\u6b63\u5e38\u7684**\u3002\u52a0 &#096;2&gt;\/dev\/null&#096; \u628a\u62a5\u9519\u6254\u6389&#xff1a;&#096;du -sh \/proc 2&gt;\/dev\/null&#096; \u2192 &#096;0&#096; |<\/p>\n<p>| &#096;ls&#096; \u91cc\u4e2d\u6587\u540d\u663e\u793a\u6210 &#096;&#039;&#039;$&#039;\\\\345\\\\207\\\\272\\\\351\\\\242\\\\230\\\\345\\\\215\\\\225&#039;&#039;.json&#039;&#096; | \u90a3\u662f**\u516b\u8fdb\u5236\u5b57\u8282\u7801**&#xff0c;\u89e3\u51fa\u6765\u5c31\u662f\u300c\u51fa\u9898\u5355\u300d\u3002\u6587\u4ef6**\u6ca1\u574f**&#xff0c;\u662f\u663e\u793a\u65b9\u5f0f | \u540c\u4e00\u9879\u5728 UTF-8 locale \u4e0b\u6b63\u5e38\u663e\u793a\u4e3a &#096;\u51fa\u9898\u5355.json&#096;\u3002\u540d\u5b57\u5e26**\u7a7a\u683c**\u7684\u4f1a\u88ab\u52a0\u5355\u5f15\u53f7&#xff08;&#096;&#039;harness engineering&#039;&#096;&#xff09;&#xff0c;\u90a3\u662f**\u65b9\u4fbf\u4f60\u590d\u5236\u56de\u547d\u4ee4\u884c** |<\/p>\n<p>| &#096;ls -di \/bin&#096; \u663e\u793a inode &#096;13&#096;&#xff0c;\u548c &#096;\/usr\/bin&#096; \u7684 &#096;1471&#096; \u4e0d\u4e00\u6837 | &#096;ls -di&#096; \u5bf9\u8f6f\u94fe\u63a5\u663e\u793a**\u94fe\u63a5\u81ea\u5df1**&#xff0c;**\u4e0d\u8ddf\u968f**\u76ee\u6807 | \u8981\u770b\u76ee\u6807\u5c31**\u52a0\u659c\u6760**&#xff1a;&#096;ls -di \/bin\/&#096;&#xff1b;\u6216\u7528 &#096;stat -L&#096; |<\/p>\n<p>\u00a0<\/p>\n<p>**\u65b0\u5b66\u7684\u4e24\u4e2a\u8f93\u51fa\u901a\u9053\u6982\u5ff5**&#xff1a;<\/p>\n<p>\u00a0<\/p>\n<p>| \u901a\u9053 | \u7f16\u53f7 | \u88c5\u4ec0\u4e48 |<\/p>\n<p>| &#8212;&#8212;&#8212;&#8212;&#8212; | &#8212;&#8211; | &#8212;&#8212;&#8211; |<\/p>\n<p>| \u6807\u51c6\u8f93\u51fa stdout | **1** | \u6b63\u5e38\u7ed3\u679c |<\/p>\n<p>| \u6807\u51c6\u9519\u8bef stderr | **2** | \u62a5\u9519\u4fe1\u606f |<\/p>\n<p>\u00a0<\/p>\n<p>&#096;2&gt;\/dev\/null&#096; &#061; \u628a**\u62a5\u9519**\u6254\u6389&#xff08;&#096;\/dev\/null&#096; \u662f\u9ed1\u6d1e\u8bbe\u5907&#xff0c;\u5199\u8fdb\u53bb\u5c31\u6d88\u5931&#xff09;\u3002<\/p>\n<p>\u00a0<\/p>\n<p>&#8212;<\/p>\n<p>\u00a0<\/p>\n<p>## \u7ebf\u7d22\u533a&#xff08;\u5b66\u5b8c\u540e\u5408\u4e0a\u6750\u6599&#xff0c;\u81ea\u95ee\u81ea\u7b54&#xff09;<\/p>\n<p>\u00a0<\/p>\n<p>**Q: FHS \u8fd9\u4e2a\u7f29\u5199\u91cc&#xff0c;&#034;Standard&#034; \u8bf4\u660e\u5b83\u662f\u4ec0\u4e48\u6027\u8d28\u7684\u4e1c\u897f&#xff1f;**<\/p>\n<p>A: **\u5927\u5bb6\u7ea6\u5b9a\u597d\u7528\u540c\u4e00\u5957**\u7684\u89c4\u8303&#xff0c;\u4e0d\u662f&#034;\u5efa\u8bae&#034;\u3002\u5b83\u89c4\u5b9a\u7684\u662f**\u5177\u4f53\u5185\u5bb9**&#xff1a;&#096;\/&#096; \u5e95\u4e0b\u6709\u54ea\u4e9b\u76ee\u5f55\u3001\u6bcf\u4e2a\u76ee\u5f55\u653e\u4ec0\u4e48\u3002<\/p>\n<p>\u00a0<\/p>\n<p>**Q: \u4f60\u600e\u4e48\u77e5\u9053 &#096;\/snap&#096; \u4e0d\u662f FHS \u6807\u51c6\u76ee\u5f55&#xff1f;**<\/p>\n<p>A: &#096;man hier&#096; \u91cc**\u6ca1\u6709\u5b83**\u3002&#034;**\u67e5\u4e0d\u5230**&#034;\u672c\u8eab\u5c31\u662f\u7b54\u6848&#xff0c;\u4e0d\u662f&#034;\u6ca1\u67e5\u5230&#034;\u3002<\/p>\n<p>\u00a0<\/p>\n<p>**Q: &#096;man hier&#096; \u67e5\u4e0d\u5230&#xff0c;\u5c31\u8bf4\u660e\u53ea\u6709\u6211\u8fd9\u53f0\u6709\u5417&#xff1f;**<\/p>\n<p>A: **\u4e0d\u662f**\u3002\u53ea\u80fd\u8bf4\u660e&#034;**\u5b83\u4e0d\u5c5e\u4e8e FHS \u6807\u51c6**&#034;\u3002\u5b83\u662f&#034;\u8c01\u7684&#034;\u8fd8\u8981\u518d\u5206&#xff1a;&#096;\/snap&#096; \u662f**\u6240\u6709 Ubuntu \u90fd\u6709**\u3001&#096;\/init&#096; \u662f**\u6240\u6709 WSL \u90fd\u6709**&#xff0c;\u8ddf&#034;\u53ea\u6709\u4f60\u4e00\u53f0\u6709&#034;\u662f\u4e24\u56de\u4e8b\u3002<\/p>\n<p>\u00a0<\/p>\n<p>**Q: &#096;\/lost&#043;found&#096; \u662f\u79c1\u8d27\u5417&#xff1f;**<\/p>\n<p>A: **\u4e0d\u662f**&#xff0c;\u5b83\u662f **FHS \u6807\u51c6\u76ee\u5f55**\u3002&#096;man hier&#096; \u91cc\u5199\u7740 &#096;This directory contains items lost in the filesystem.&#096;<\/p>\n<p>\u00a0<\/p>\n<p>**Q: \u5728 &#096;\/etc&#096; \u91cc\u770b\u5230\u4e00\u4e2a\u6ca1\u6709\u540e\u7f00\u7684\u6587\u4ef6 &#096;foo&#096;&#xff0c;\u600e\u4e48\u5224\u65ad\u5b83\u662f\u4e0d\u662f\u914d\u7f6e&#xff1f;**<\/p>\n<p>A: **\u770b\u5b83\u5728\u54ea&#xff0c;\u4e0d\u770b\u5b83\u957f\u4ec0\u4e48\u6837**\u3002&#096;\/etc&#096; \u7684\u5b9a\u4e49\u5c31\u662f &#096;Contains configuration files&#096;\u2014\u2014\u8fdb\u4e86\u8fd9\u4e2a\u95e8&#xff0c;\u91cc\u9762\u7684\u5c31\u662f\u914d\u7f6e\u3002<\/p>\n<p>\u00a0<\/p>\n<p>**Q: &#096;man hier | grep &#034;\/opt&#034;&#096; \u4f1a\u51fa\u51e0\u884c&#xff1f;\u4e3a\u4ec0\u4e48&#xff1f;**<\/p>\n<p>A: \u4f60\u7684\u673a\u5668\u4e0a\u51fa **5 \u884c**\u3002\u56e0\u4e3a &#096;grep&#096; \u662f**\u6a21\u7cca\u5339\u914d**\u2014\u2014**\u542b\u6709** &#096;\/opt&#096; \u5c31\u547d\u4e2d&#xff0c;\u4e0d\u7ba1\u5728\u54ea\u4e2a\u4f4d\u7f6e\u3002\u547d\u4e2d\u7684 5 \u884c\u6d89\u53ca 3 \u4e2a\u76ee\u5f55\u6761\u76ee&#xff08;&#096;\/opt&#096;\u3001&#096;\/etc\/opt&#096;\u3001&#096;\/var\/opt&#096;&#xff09;&#xff0c;\u540e\u4e24\u4e2a\u7684**\u8bf4\u660e\u884c**\u91cc\u4e5f\u542b &#096;\/opt&#096;\u3002<\/p>\n<p>\u00a0<\/p>\n<p>**Q: &#096;\/usr&#096; \u548c &#096;\/usr\/local&#096; \u7684\u533a\u522b&#xff1f;**<\/p>\n<p>A: &#096;\/usr&#096; &#061; **\u53d1\u884c\u7248\u7ed9\u7684**&#xff08;\u8c01\u88c5\u540c\u7248\u672c Ubuntu \u90fd\u6709&#xff0c;\u4e00\u6a21\u4e00\u6837&#xff09;&#xff1b;&#096;\/usr\/local&#096; &#061; **\u672c\u673a\u72ec\u6709\u7684**&#xff08;\u4f60\u81ea\u5df1\u88c5\u7684&#xff0c;\u522b\u4eba\u7684\u673a\u5668\u6ca1\u6709&#xff09;\u3002<\/p>\n<p>\u00a0<\/p>\n<p>**Q: \u4e3a\u4ec0\u4e48 &#096;du -sh \/proc&#096; \u663e\u793a 0&#xff1f;**<\/p>\n<p>A: \u56e0\u4e3a &#096;\/proc&#096; \u662f**\u4f2a\u6587\u4ef6\u7cfb\u7edf**\u2014\u2014\u91cc\u9762\u7684\u5185\u5bb9\u662f**\u5185\u6838\u5b9e\u65f6\u751f\u6210\u7684**&#xff0c;\u4e0d\u5b58\u5728\u78c1\u76d8\u4e0a\u3002<\/p>\n<p>\u00a0<\/p>\n<p>**Q: &#096;ls -l&#096; \u91cc &#096;\/bin&#096; \u90a3\u884c\u7684\u300c\u5927\u5c0f\u300d\u662f 7\u3002\u8fd9\u4e2a 7 \u662f\u4ec0\u4e48&#xff1f;**<\/p>\n<p>A: \u662f**\u76ee\u6807\u8def\u5f84\u5b57\u7b26\u4e32\u7684\u957f\u5ea6**\u2014\u2014&#096;\/bin&#096; \u6307\u5411 &#096;usr\/bin&#096;&#xff0c;&#096;usr\/bin&#096; \u6b63\u597d **7 \u4e2a\u5b57\u7b26**\u3002\u8f6f\u94fe\u63a5\u81ea\u8eab\u5b58\u7684**\u53ea\u6709&#034;\u6307\u5411\u54ea\u4e2a\u8def\u5f84&#034;\u8fd9\u4e2a\u5b57\u7b26\u4e32**&#xff0c;\u5b83\u6839\u672c\u4e0d\u77e5\u9053\u76ee\u6807\u6587\u4ef6\u591a\u5927\u3002<\/p>\n<p>\u00a0<\/p>\n<p>**Q: &#096;\/bin&#096; \u548c &#096;\/usr\/bin&#096; \u662f\u4e00\u4e2a\u76ee\u5f55\u8fd8\u662f\u4e24\u4e2a&#xff1f;**<\/p>\n<p>A: **\u4e00\u4e2a**\u3002&#096;\/bin&#096; \u662f\u8f6f\u94fe\u63a5\u6307\u5411 &#096;\/usr\/bin&#096;\u3002\u8bc1\u636e&#xff1a;\u4e24\u4e2a\u8def\u5f84\u7684 inode \u53f7\u90fd\u662f **1471**&#xff08;\u52a0\u659c\u6760\u5f3a\u5236\u8ddf\u968f\u540e&#xff09;\u3002<\/p>\n<p>\u00a0<\/p>\n<p>**Q: &#096;\/mnt&#096; \u548c &#096;\/media&#096; \u5206\u522b\u7ba1\u4ec0\u4e48&#xff1f;**<\/p>\n<p>A: &#096;\/media&#096; &#061; **\u53ef\u79fb\u52a8\u4ecb\u8d28**&#xff08;U \u76d8\u3001CD\/DVD&#xff09;&#xff0c;\u7cfb\u7edf\u81ea\u52a8\u6302&#xff1b;&#096;\/mnt&#096; &#061; **\u4e34\u65f6\u6302\u8f7d**&#xff0c;\u591a\u534a\u4eba\u624b\u52a8\u6302\u3002WSL \u628a\u4f60\u7684 Windows C\/D \u76d8\u6302\u5728 &#096;\/mnt\/c&#096;\u3001&#096;\/mnt\/d&#096;\u3002<\/p>\n<p>\u00a0<\/p>\n<p>&#8212;<\/p>\n<p>\u00a0<\/p>\n<p>## \u603b\u7ed3&#xff08;50\u5b57\u4ee5\u5185&#xff0c;\u7528\u81ea\u5df1\u7684\u8bdd\u6982\u62ec\u4eca\u5929\u5b66\u5230\u4e86\u4ec0\u4e48&#xff09;<\/p>\n<p>\u00a0<\/p>\n<p>\u770b\u61c2 Linux \u76ee\u5f55\u6811&#xff1a;22 \u4e2a\u9876\u7ea7\u6761\u76ee\u91cc 19 \u4e2a\u662f FHS \u6807\u51c6&#xff1b;\u4f1a\u67e5&#xff08;&#096;man hier&#096;&#xff09;&#xff1b;\u5206\u6e05\u516d\u4e2a\u91cd\u70b9\u76ee\u5f55\u5404\u653e\u4ec0\u4e48&#xff1b;\u8f6f\u94fe\u63a5\u662f&#034;\u6307\u8def\u724c&#034;&#xff08;&#096;\/bin&#096; \u2192 &#096;\/usr\/bin&#096;&#xff09;&#xff1b;&#096;ls -l&#096; \u7684\u300c\u5927\u5c0f\u300d\u5217\u542b\u4e49\u968f\u7c7b\u578b\u53d8\u3002<\/p>\n<p>\u00a0<\/p>\n<p>&#8212;<\/p>\n<p>\u00a0<\/p>\n<p>## \u590d\u4e60\u5361\u7247<\/p>\n<p>\u00a0<\/p>\n<p>| \u6982\u5ff5 | \u4e00\u53e5\u8bdd | \u6211\u7684\u573a\u666f |<\/p>\n<p>| &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; |<\/p>\n<p>| FHS | \u89c4\u5b9a &#096;\/&#096; \u5e95\u4e0b\u6709\u54ea\u4e9b\u76ee\u5f55\u3001\u5404\u653e\u4ec0\u4e48 | \u5224\u65ad\u4e00\u4e2a\u76ee\u5f55\u8be5\u653e\u4ec0\u4e48 |<\/p>\n<p>| &#096;man hier&#096; | \u7cfb\u7edf\u81ea\u5e26\u7684 FHS \u8bf4\u660e\u4e66 | \u67e5\u4efb\u4f55\u6807\u51c6\u76ee\u5f55 |<\/p>\n<p>| &#096;hier(7)&#096; \u7684 &#096;(7)&#096; | man \u7684\u7ae0\u8282\u53f7&#xff08;7&#061;\u6742\u9879&#xff09; | \u8bfb man \u9875\u6807\u9898 |<\/p>\n<p>| &#096;man 5 passwd&#096; | \u67e5**\u914d\u7f6e\u6587\u4ef6\u683c\u5f0f**\u7528\u7b2c 5 \u8282 | \u67e5 &#096;\/etc\/passwd&#096; \u7684\u5b57\u6bb5\u5b9a\u4e49 |<\/p>\n<p>| &#096;q&#096; | \u9000\u51fa man \/ less | \u5361\u5728\u6587\u6863\u91cc\u51fa\u4e0d\u6765 |<\/p>\n<p>| 22 vs 19 | 19 &#061; FHS \u6807\u51c6&#xff0c;\u591a\u7684 **3** \u4e2a\u662f\u672c\u673a\u79c1\u8d27 | \u8ba4\u51fa &#096;\/snap&#096; &#096;\/init&#096; &#096;\/lib64&#096; |<\/p>\n<p>| &#096;\/init&#096; &#096;\/lib64&#096; &#096;\/snap&#096; | 3 \u4e2a\u672c\u673a\u79c1\u8d27&#xff1a;WSL \/ \u8f6f\u94fe\u63a5 \/ Ubuntu | \u5b83\u4eec &#096;man hier&#096; \u67e5\u4e0d\u5230 |<\/p>\n<p>| &#096;\/lost&#043;found&#096; | **\u662f\u6807\u51c6\u76ee\u5f55**&#xff0c;\u4e0d\u662f\u79c1\u8d27 | \u88c5 fsck \u627e\u56de\u7684\u788e\u7247 |<\/p>\n<p>| &#034;\u67e5\u4e0d\u5230&#034; | &#061; **\u4e0d\u5c5e\u4e8e\u6807\u51c6**&#xff0c;\u4e0d\u662f&#034;\u6ca1\u67e5\u5230&#034; | \u5224\u65ad\u964c\u751f\u76ee\u5f55 |<\/p>\n<p>| &#096;\/etc&#096; | \u914d\u7f6e&#xff0c;**\u57fa\u672c\u4e0d\u53d8** | \u6539\u914d\u7f6e\u53bb\u8fd9 |<\/p>\n<p>| &#096;.conf&#096; \u540e\u7f00 | **\u4e0d\u662f**\u5224\u65ad\u4f9d\u636e&#xff0c;**\u4f4d\u7f6e**\u624d\u662f | &#096;\/etc\/bash.bashrc&#096; \u6ca1\u6709\u540e\u7f00\u4e5f\u662f\u914d\u7f6e |<\/p>\n<p>| &#096;\/var&#096; | **\u53ef\u53d8\u6570\u636e**&#xff0c;\u65e5\u5fd7\u5728\u8fd9&#xff0c;**\u4e00\u76f4\u6da8** | \u78c1\u76d8\u6ee1\u5148\u67e5\u8fd9 |<\/p>\n<p>| &#096;\/var\/log&#096; | \u65e5\u5fd7\u76ee\u5f55&#xff08;27 \u9879&#xff09; | \u6392\u67e5\u770b\u65e5\u5fd7 |<\/p>\n<p>| &#096;\/usr&#096; | **\u53d1\u884c\u7248\u7ed9\u7684**\u8f6f\u4ef6&#xff0c;\u53ef\u5171\u4eab\u53ea\u8bfb | &#096;\/usr\/bin&#096; \u6709 905 \u4e2a\u547d\u4ee4 |<\/p>\n<p>| &#096;\/usr\/local&#096; | **\u672c\u673a\u72ec\u6709**\u7684\u8f6f\u4ef6 | &#096;bin&#096; \u7a7a&#xff0c;\u4f46 &#096;lib&#096;\/&#096;share&#096; \u6709\u5185\u5bb9 |<\/p>\n<p>| &#096;local&#096; \u7684\u542b\u4e49 | &#034;**\u672c\u673a\u4e13\u5c5e**&#034;&#xff0c;\u4e0d\u662f&#034;\u672c\u5730 vs \u8fdc\u7a0b&#034; | \u522b\u7406\u89e3\u6210&#034;\u672c\u5730\u7535\u8111&#034; |<\/p>\n<p>| &#096;\/proc&#096; | **\u5185\u6838\u7a97\u53e3**&#xff0c;\u4f2a\u6587\u4ef6\u7cfb\u7edf&#xff0c;\u4e0d\u5360\u78c1\u76d8 | \u770b\u8fdb\u7a0b\u3001\u770b\u5185\u6838\u4fe1\u606f |<\/p>\n<p>| PID | \u8fdb\u7a0b\u53f7&#xff0c;&#096;\/proc&#096; \u4e0b\u6bcf\u4e2a\u6570\u5b57\u76ee\u5f55 &#061; \u4e00\u4e2a\u8fdb\u7a0b | &#096;ls \/proc&#096; \u90a3\u4e00\u5806\u6570\u5b57 |<\/p>\n<p>| &#096;\/home&#096; | \u5bb6\u76ee\u5f55&#xff0c;FHS \u91cc\u6807 **optional** | \u7528\u6237\u7684\u79c1\u4eba\u7a7a\u95f4 |<\/p>\n<p>| &#096;$HOME&#096; \/ &#096;~&#096; | &#034;\u6211\u5bb6\u5728\u54ea&#034;&#xff0c;\u4e24\u8005\u7b49\u4ef7 | &#096;echo ~&#096; \u2192 &#096;\/home\/ar-26710&#096; |<\/p>\n<p>| &#096;\/bin&#096; | \u547d\u4ee4&#xff0c;**\u7cfb\u7edf\u4fee\u590d\u65f6\u4e5f\u8981\u80fd\u7528**\u7684\u90a3\u6279 | 905 \u4e2a&#xff0c;\u4e14\u662f\u8f6f\u94fe\u63a5 |<\/p>\n<p>| \u8f6f\u94fe\u63a5 | &#034;**\u6307\u8def\u724c**&#034;&#xff1a;\u81ea\u8eab\u53ea\u5b58\u76ee\u6807\u8def\u5f84 | &#096;ls -l&#096; \u91cc\u7684 &#096;-&gt;&#096; |<\/p>\n<p>| &#096;readlink&#096; | \u76f4\u63a5\u6253\u5370\u8f6f\u94fe\u63a5\u6307\u5411\u54ea | &#096;readlink \/bin&#096; \u2192 &#096;usr\/bin&#096; |<\/p>\n<p>| UsrMerge | &#096;\/bin&#096; &#096;\/sbin&#096; &#096;\/lib&#096; \u5408\u5e76\u8fdb &#096;\/usr&#096;&#xff0c;\u539f\u4f4d\u7559\u8f6f\u94fe\u63a5 | \u4e3a\u4ec0\u4e48 &#096;\/bin&#096; \u662f\u7bad\u5934 |<\/p>\n<p>| \u8f6f\u94fe\u63a5\u7684\u6743\u9650 | \u6c38\u8fdc\u662f &#096;rwxrwxrwx&#096;&#xff0c;**\u4e0d\u751f\u6548**&#xff08;\u770b\u76ee\u6807\u7684&#xff09; | &#096;lrwxrwxrwx&#096; \u90a3 9 \u4f4d |<\/p>\n<p>| &#096;l&#096; \u5f00\u5934 | &#096;ls -l&#096; \u7b2c\u4e00\u4f4d &#061; **\u8f6f\u94fe\u63a5**&#xff08;&#096;-&#096;\u6587\u4ef6 &#096;d&#096;\u76ee\u5f55&#xff09; | \u8bfb &#096;ls -l&#096; \u7b2c\u4e00\u5217 |<\/p>\n<p>| \u300c\u5927\u5c0f\u300d\u5217&#xff08;\u8f6f\u94fe\u63a5&#xff09; | &#061; **\u76ee\u6807\u8def\u5f84\u7684\u5b57\u7b26\u6570** | &#096;\/bin&#096; &#061; 7&#xff08;&#096;usr\/bin&#096; 7 \u5b57\u7b26&#xff09; |<\/p>\n<p>| \u300c\u5927\u5c0f\u300d\u5217&#xff08;\u76ee\u5f55&#xff09; | &#061; **4096**&#xff08;\u5757\u5927\u5c0f&#xff09;&#xff0c;\u4e0d\u662f\u5185\u5bb9\u5927\u5c0f | &#096;\/etc&#096; &#061; 4096 |<\/p>\n<p>| \u300c\u5927\u5c0f\u300d\u5217&#xff08;\u4f2a\u6587\u4ef6\u7cfb\u7edf&#xff09; | &#061; **0** | &#096;\/proc&#096; &#096;\/sys&#096; |<\/p>\n<p>| &#096;\/mnt&#096; | \u4e34\u65f6\u6302\u8f7d\u70b9&#xff1b;WSL \u628a Windows \u76d8\u6302\u8fd9 | &#096;\/mnt\/d\/\u5b66\u4e60\/AI\u5b66\u4e60\u8ba1\u5212&#096; |<\/p>\n<p>| &#096;\/media&#096; | \u53ef\u79fb\u52a8\u4ecb\u8d28&#xff08;U \u76d8\/CD&#xff09;&#xff0c;\u7cfb\u7edf\u81ea\u52a8\u6302 | \u4f60\u7684\u673a\u5668\u4e0a\u662f\u7a7a\u7684 |<\/p>\n<p>| stdout \/ stderr | \u8f93\u51fa 1 \/ \u62a5\u9519 2&#xff0c;\u4e24\u4e2a\u901a\u9053 | &#096;2&gt;\/dev\/null&#096; \u6254\u62a5\u9519 |<\/p>\n<p>| &#096;2&gt;\/dev\/null&#096; | \u628a\u62a5\u9519\u4e22\u6389 | &#096;du -sh \/proc 2&gt;\/dev\/null&#096; |<\/p>\n<p>| **\u6570\u6570\u7684\u7b5b\u5b50** | \u5148\u68c0\u67e5\u4f60\u7684\u5339\u914d\u6a21\u5f0f\u80fd\u4e0d\u80fd\u7f69\u4f4f\u5168\u90e8 | &#096;grep -cE &#039;^ \/[a-z]&#043; &#039;&#096; \u6f0f\u4e86 &#096;-&#096; |<\/p>\n<p>\u00a0<\/p>\n<p>&#8212;<\/p>\n<p>\u00a0<\/p>\n<p>## \u65e7\u77e5\u8bc6\u56de\u6536&#xff08;\u4eca\u5929\u66b4\u9732\u51fa\u6765\u7684&#xff09;<\/p>\n<p>\u00a0<\/p>\n<p>| \u6982\u5ff5 | \u4e00\u53e5\u8bdd | \u51fa\u5904 |<\/p>\n<p>| &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- | &#8212;&#8212;&#8212;&#8212;- |<\/p>\n<p>| &#096;useradd&#096; \u4e0d\u5e26 &#096;-m&#096; | **\u4e0d\u5efa\u5bb6\u76ee\u5f55**&#xff0c;\u53ea\u5f80 &#096;\/etc\/passwd&#096; \u767b\u8bb0 | 09-17 \u7b2c 6 \u5929 |<\/p>\n<p>| &#034;\u767b\u8bb0\u8868 \u2260 \u5b9e\u7269&#034; | &#096;\/etc\/passwd&#096; \u5199\u7740 &#096;\/home\/s1tester&#096;&#xff0c;\u4f46 &#096;\/home&#096; \u91cc\u6ca1\u6709\u5b83 | 09-17 \u7b2c 6 \u5929 |<\/p>\n<p>| &#096;-m&#096; \u662f\u5426\u751f\u6548\u770b &#096;CREATE_HOME&#096; | \u8fd9\u4e2a\u5f00\u5173\u5728 &#096;\/etc\/login.defs&#096;&#xff0c;\u4e0d\u662f\u547d\u4ee4\u81ea\u5e26\u7684 | 09-17 \u7b2c 6 \u5929 |<\/p>\n<p>| &#096;\/etc\/skel&#096; | \u5bb6\u76ee\u5f55\u7684**\u6a21\u677f**&#xff0c;&#096;-m&#096; \u5efa\u5bb6\u65f6\u628a\u91cc\u9762\u7684\u6587\u4ef6\u590d\u5236\u8fc7\u53bb | 09-17 \u7b2c 6 \u5929 |<\/p>\n<p>| &#096;usermod -G&#096;&#xff08;\u4e0d\u5e26 &#096;a&#096;&#xff09; | **\u9876\u6389**\u539f\u6709\u9644\u52a0\u7ec4&#xff1b;&#096;man usermod&#096;&#xff1a;&#096;the user will be removed from the group&#096; | 09-17 \u7b2c 6 \u5929 |<\/p>\n<p>| &#096;-g&#096; \/ &#096;-G&#096; | \u5c0f\u5199\u6539**\u4e3b\u7ec4**&#xff0c;\u5927\u5199\u6539**\u9644\u52a0\u7ec4** | 09-17 \u7b2c 6 \u5929 |<\/p>\n<p>| &#096;ls -l&#096; 9 \u4f4d\u6743\u9650 | \u524d 1 \u4f4d\u662f**\u7c7b\u578b**&#xff0c;\u540e 9 \u4f4d\u624d\u662f**\u6743\u9650** | 09-07 \u7b2c 2 \u5929 |<\/p>\n<p>| &#096;grep&#096; \u53c2\u6570\u987a\u5e8f | &#096;grep \u8981\u627e\u7684 \u4ece\u54ea\u627e&#096;&#xff0c;\u53cd\u4e86\u62a5 &#096;No such file&#096; | 09-09 \u7b2c 4 \u5929 |<\/p>\n<p>| \u7ba1\u9053 &#096;\\\\|&#096; | \u5de6\u8fb9\u7684\u8f93\u51fa\u5f53\u53f3\u8fb9\u7684\u8f93\u5165 | 09-09 \u7b2c 4 \u5929 |<\/p>\n<p>| &#096;head -20&#096; | \u53ea\u8981\u524d 20 \u884c | 09-09 \u7b2c 4 \u5929 |<\/p>\n<p>| &#096;dpkg&#096; | Debian \u7cfb\u5e95\u5c42\u5305\u7ba1\u7406\u5668&#xff08;&#096;apt&#096; \u662f\u5b83\u7684\u524d\u7aef&#xff09; | \u4eca\u5929\u65b0\u5b66 |<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8212;type: learning-notetitle: Linux&#xff1a;FHS \u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21date: 2026-09-18description:FHS&#xff08;\u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21\u6807\u51c6&#xff09;&#xff1a;\u5b9a\u4e49\u4e0e\u4e3a\u4ec0\u4e48\u9700\u8981\u3001man hier \u600e\u4e48\u67e5\u3001\u6839\u76ee\u5f55 22 \u6761\u76ee 19 \u6807\u51c6 3 \u672c\u673a\u79c1\u8d27\u3001\u516d\u4e2a\u91cd\u70b9\u76ee\u5f55&#xff08;\/etc \/var \/usr \/proc \/home \/bin&#xff09;\u3001\u8f6f\u94fe\u63a5\u4e0e UsrMerge\u3001ls -l\u300c\u5927\u5c0f\u300d\u5217\u7684\u56db<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58],"topic":[],"class_list":["post-107096","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux Day8\u2014\u2014FHS\u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/107096.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux Day8\u2014\u2014FHS\u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"---type: learning-notetitle: Linux&#xff1a;FHS \u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21date: 2026-09-18description:FHS&#xff08;\u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21\u6807\u51c6&#xff09;&#xff1a;\u5b9a\u4e49\u4e0e\u4e3a\u4ec0\u4e48\u9700\u8981\u3001man hier \u600e\u4e48\u67e5\u3001\u6839\u76ee\u5f55 22 \u6761\u76ee 19 \u6807\u51c6 3 \u672c\u673a\u79c1\u8d27\u3001\u516d\u4e2a\u91cd\u70b9\u76ee\u5f55&#xff08;\/etc \/var \/usr \/proc \/home \/bin&#xff09;\u3001\u8f6f\u94fe\u63a5\u4e0e UsrMerge\u3001ls -l\u300c\u5927\u5c0f\u300d\u5217\u7684\u56db\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/107096.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-18T16:24:34+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/107096.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/107096.html\",\"name\":\"Linux Day8\u2014\u2014FHS\u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-18T16:24:34+00:00\",\"dateModified\":\"2026-09-18T16:24:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/107096.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/107096.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/107096.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux Day8\u2014\u2014FHS\u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux Day8\u2014\u2014FHS\u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/107096.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux Day8\u2014\u2014FHS\u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"---type: learning-notetitle: Linux&#xff1a;FHS \u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21date: 2026-09-18description:FHS&#xff08;\u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21\u6807\u51c6&#xff09;&#xff1a;\u5b9a\u4e49\u4e0e\u4e3a\u4ec0\u4e48\u9700\u8981\u3001man hier \u600e\u4e48\u67e5\u3001\u6839\u76ee\u5f55 22 \u6761\u76ee 19 \u6807\u51c6 3 \u672c\u673a\u79c1\u8d27\u3001\u516d\u4e2a\u91cd\u70b9\u76ee\u5f55&#xff08;\/etc \/var \/usr \/proc \/home \/bin&#xff09;\u3001\u8f6f\u94fe\u63a5\u4e0e UsrMerge\u3001ls -l\u300c\u5927\u5c0f\u300d\u5217\u7684\u56db","og_url":"https:\/\/www.wsisp.com\/helps\/107096.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-18T16:24:34+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/107096.html","url":"https:\/\/www.wsisp.com\/helps\/107096.html","name":"Linux Day8\u2014\u2014FHS\u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-18T16:24:34+00:00","dateModified":"2026-09-18T16:24:34+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/107096.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/107096.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/107096.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux Day8\u2014\u2014FHS\u6587\u4ef6\u7cfb\u7edf\u5c42\u6b21"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/107096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=107096"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/107096\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=107096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=107096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=107096"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=107096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}