linux\u79c1\u623f\u83dc<\/strong>\uff0c\u8be5\u76ee\u5f55\u5c31\u624d\u80fd\u62e5\u6709root\u7684\u5bb6\u76ee\u5f55\uff0c\u6240\u4ee5\u6211\u4eec\u4f1a\u5e0c\u671broot\u7684\u5bb6\u76ee\u5f55\u4e0e\u6839\u76ee\u5f55\u653e\u7f6e\u5728\u540c\u4e00\u4e2a\u5206\u533a\u4e2d\u3002<\/p>\n\/sbin<\/p>\n
Linux\u6709\u7279\u522b\u591a\u6307\u4ee4\u662f\u62ff\u6765\u8bbe\u5b9a\u7cfb\u7edf\u73af\u5883\u7684\uff0c\u8fd9\u79cd\u6307\u4ee4\u53ea\u6709root\u624d\u624d\u80fd\u5229\u62ff\u6765\u8bbe\u5b9a\u7cfb\u7edf\uff0c\u5176\u4ed6\u4f7f\u7528\u8005\u6700\u591a\u53ea\u80fd\u62ff\u6765\u67e5\u8be2\u800c\u5df2\u3002\u7f6e\u4e8e\/sbin\u4e0b\u8fb9\u7684\u4e3a\u5f00\u673a\u8fc7\u7a0b\u4e2d\u6240\u987b\u8981\u7684\uff0c\u4e0a\u9762\u5305\u62ec\u4e86\u5f00\u673a\u3001\u4fee\u590d\u3001\u8fd8\u539f\u7cfb\u7edf\u6240\u987b\u8981\u7684\u6307\u4ee4\u3002\u81f3\u4e8e\u4e2a\u522b\u4f3a\u670d\u5668\u8f6f\u4f53\u7a0b\u5f0f\uff0c\u901a\u5e38\u5219\u653e\u7f6e\u5230\/usr\/sbin\/\u5f53\u4e2d\u3002\u81f3\u4e8e\u672c\u673a\u81ea\u884c\u5b89\u88c5\u7684\u8f6f\u4f53\u6240\u5f62\u6210\u7684\u7cfb\u7edf\u6267\u884c\u6863(systembinary)\uff0c\u5219\u653e\u7f6e\u5230\/usr\/local\/sbin\/\u5f53\u4e2d\u4e86\u3002\u5e38\u89c1\u7684\u6307\u4ee4\u5305\u62ec\uff1afdisk,fsck,ifconfig,init,mkfs\u7b49\u7b49\u3002<\/p>\n
\/srv<\/p>\n
srv\u53ef\u4ee5\u89c6\u4e3aservice\u7684\u7b80\u5199\uff0c\u662f\u4e00\u4e9b\u7f51\u7edc\u670d\u52a1\u542f\u52a8\u4ee5\u540e\uff0c\u8fd9\u79cd\u670d\u52a1\u6240\u987b\u8981\u53d6\u7528\u7684\u8d44\u6599\u76ee\u5f55\u3002\u5e38\u89c1\u7684\u670d\u52a1\u6bd4\u5982WWW,FTP\u7b49\u7b49\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0cWWW\u4f3a\u670d\u5668\u987b\u8981\u7684\u7f51\u9875\u8d44\u6599\u5c31\u53ef\u4ee5\u653e\u7f6e\u5728\/srv\/www\/\u4e0a\u9762\u3002\u5475\u5475\uff0c\u770b\u6765\u5e73\u5e38\u6211\u4eec\u7f16\u64b0\u7684\u4ee3\u7801\u5e94\u5f53\u653e\u5728\u8fd9\u513f\u4e86\u3002<\/p>\n
\/tmp<\/p>\n
\u8fd9\u662f\u8ba9\u901a\u5e38\u4f7f\u7528\u8005\u6216\u5219\u662f\u6b63\u5728\u6267\u884c\u7684\u7a0b\u5e8f\u6682\u65f6\u653e\u7f6e\u6863\u6848\u7684\u5730\u65b9\u3002\u8fd9\u4e2a\u76ee\u5f55\u662f\u4efb\u4f55\u4eba\u90fd\u8fd8\u80fd\u5b58\u53d6\u7684\uff0c\u6240\u4ee5\u4f60\u987b\u8981\u5b9a\u671f\u7684\u6e05\u9664\u4e00\u4e0b\u3002\u5176\u5b9e\uff0c\u91cd\u8981\u8d44\u6599\u4e0d\u53ef\u653e\u7f6e\u5728\u6b64\u76ee\u5f55\u554a\u3002\u7531\u4e8eFHS\u751a\u81f3\u5efa\u8bae\u5728\u5f00\u673a\u65f6\uff0c\u5e94\u5f53\u8981\u5c06\/tmp\u4e0b\u7684\u8d44\u6599\u90fd\u5220\u6389\u3002<\/p>\n
\u4e8b\u5b9e\u4e0aFHS\u9488\u5bf9\u6839\u76ee\u5f55\u6240\u5b9a\u4e49\u7684\u6807\u51c6\u5c31\u4ec5\u9650\u4e8e\u4e0a\u8868\uff0c\u4e0d\u8fc7\u4ecd\u7136\u6709\u4e9b\u76ee\u5f55\u4e5f\u987b\u8981\u6211\u4eec\u4e86\u89e3\u4e00\u4e0b\uff0c\u5177\u4f53\u5982\u4e0b\uff1a<\/p>\n
<\/p>\n
\u76ee\u5f55<\/p>\n
\u5e94\u653e\u7f6e\u6587\u4ef6\u5185\u5bb9<\/p>\n
\/lost+found<\/p>\n
\u8fd9\u4e2a\u76ee\u5f55\u662f\u4f7f\u7528\u6807\u51c6\u7684ext2\/ext3\u6863\u6848\u7cfb\u7edf\u683c\u5f0f\u624d\u80fd\u5f62\u6210\u7684\u4e00\u4e2a\u76ee\u5f55\uff0c\u76ee\u7684\u5728\u4e8e\u5f53\u6863\u6848\u7cfb\u7edf\u53d1\u751f\u9519\u8bef\u65f6\uff0c\u5c06\u4e00\u4e9b\u4e22\u5931\u7684\u7247\u65ad\u653e\u7f6e\u5230\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u3002\u8fd9\u4e2a\u76ee\u5f55\u4e00\u822c\u4f1a\u5728\u5206\u5272\u69fd\u7684\u6700\u9876\u697c\u5b58\u5728\uff0c\u6bd4\u5982\u4f60\u6539\u88c5\u4e00\u4e2a\u786c\u789f\u4e8e\/disk\u4e2d\uff0c\u90a3\u5728\u8fd9\u4e2a\u7cfb\u7edf\u4e0b\u624d\u4f1a\u624b\u52a8\u5f62\u6210\u4e00\u4e2a\u8fd9\u6837\u7684\u76ee\u5f55\/disk\/lost+found<\/p>\n
\/proc<\/p>\n
\u8fd9\u4e2a\u76ee\u5f55\u672c\u8eab\u662f\u4e00\u4e2a\u865a\u62df\u6587\u4ef6\u7cfb\u7edf(virtualfilesystem)\u5594\u3002\u4ed6\u653e\u7f6e\u7684\u8d44\u6599\u90fd\u662f\u5728\u663e\u5b58\u5f53\u4e2d\uff0c\u6bd4\u5982\u7cfb\u7edf\u6838\u5fc3\u3001\u884c\u7a0b\u8d44\u8baf(process)\uff08\u662f\u8fdb\u7a0b\u5417?\uff09\u3001\u5468\u8fb9\u88c5\u7f6e\u7684\u72b6\u6001\u53ca\u7f51\u8def\u72b6\u6001\u7b49\u7b49\u3002\u7531\u4e8e\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u7684\u8d44\u6599\u90fd\u662f\u5728\u8bb0\u5fc6\u4f53\uff08\u663e\u5b58\uff09\u5f53\u4e2d\uff0c\u6240\u4ee5\u672c\u8eab\u4e0d\u5360\u4efb\u4f55\u786c\u789f\u7a7a\u95f4\u3002\u6bd4\u8f83\u91cd\u8981\u7684\u6863\u6848\uff08\u76ee\u5f55\uff09\u8bf8\u5982\uff1a\/proc\/cpuinfo,\/proc\/dma,\/proc\/interrupts,\/proc\/ioports,\/proc\/net\/*\u7b49\u7b49\u3002\u5475\u5475\uff0c\u662f\u865a\u62df\u663e\u5b58\u5417[guest]\uff1f<\/p>\n
\/sys<\/p>\n
\u8fd9\u4e2a\u76ee\u5f55\u8c8c\u4f3c\u8ddf\/proc\u5341\u5206\u7c7b\u4f3c\uff0c\u4e5f\u662f\u4e00\u4e2a\u865a\u62df\u7684\u6863\u6848\u7cfb\u7edf\uff0c\u4e3b\u8981\u4e5f\u662f\u8bb0\u5f55\u4e0e\u6838\u5fc3\u76f8\u5173\u7684\u8d44\u8baf\u3002\u5305\u62ec\u76ee\u524d\u5df2\u8f7d\u5165\u7684\u6838\u5fc3\u6a21\u7ec4\u4e0e\u6838\u5fc3\u63a2\u6d4b\u5230\u7684\u786c\u4f53\u88c5\u7f6e\u8d44\u8baf\u7b49\u7b49\u3002\u8fd9\u4e2a\u76ee\u5f55\u540c\u6837\u4e0d\u5360\u786c\u789f\u5bb9\u91cf\u3002<\/p>\n
\u4e0d\u4ec5\u8fd9\u79cd\u76ee\u5f55\u7684\u5185\u5bb9\u4e4b\u5916\uff0c\u53e6\u5916\u8981\u6ce8\u610f\u7684\u662f\uff0c\u7531\u4e8e\u6839\u76ee\u5f55\u4e0e\u5f00\u673a\u6709\u5173\uff0c\u5f00\u673a\u8fc7\u7a0b\u4e2d\u4ec5\u6709\u6839\u76ee\u5f55\u4f1a\u88ab\u6302\u8f7d\uff0c\u5176\u4ed6\u5206\u533a\u5219\u662f\u5728\u5f00\u673a\u5b8c\u6210\u4ee5\u540e\u5c31\u4f1a\u6301\u7eed\u7684\u8fdb\u884c\u6302\u8f7d\u7684\u884c\u4e3a\u3002\u5c31\u662f\u7531\u4e8e\u8fd9\u822c\uff0c\u56e0\u800c\u6839\u76ee\u5f55\u4e0b\u4e0e\u5f00\u673a\u8fc7\u7a0b\u6709\u5173\u7684\u76ee\u5f55\uff0c\u5c31\u4e0d\u80fd\u5426\u4e0e\u6839\u76ee\u5f55\u653e\u5728\u4e0d\u540c\u7684\u5206\u533a\u53bb\u3002\u90a3\u4ec0\u4e48\u76ee\u5f55\u4e0d\u53ef\u4e0e\u6839\u76ee\u5f55\u5206\u5f00\u5462\uff1f\u6709\u4e0b\u8fb9\u8fd9\u79cd\uff1a<\/p>\n
\/etc\uff1a\u914d\u7f6e\u6587\u4ef6<\/p>\n
\/bin\uff1a\u91cd\u8981\u6267\u884c\u6863<\/p>\n
\/dev\uff1a\u6240\u987b\u8981\u7684\u88c5\u7f6e\u6587\u4ef6<\/p>\n
\/lib\uff1a\u6267\u884c\u6863\u6240\u9700\u7684\u51fd\u5f0f\u5e93\u4e0e\u6838\u5fc3\u6240\u9700\u7684\u6a21\u5757<\/p>\n
\/sbin\uff1a\u91cd\u8981\u7684\u7cfb\u7edf\u6267\u884c\u6587\u4ef6<\/p>\n
\u8fd9\u4e94\u4e2a\u76ee\u5f55\u5343\u4e07\u4e0d\u53ef\u4e0e\u6839\u76ee\u5f55\u5206\u5f00\u5728\u4e0d\u540c\u7684\u5206\u533a\u3002\u8bf7\u80cc\u51fa\u6765\u554a\u3002<\/p>\n
\u4e8c.\/usr\u7684\u610f\u4e49\u4e0e\u5185\u5bb9\uff1a<\/p>\n
\u6839\u636eFHS\u7684\u57fa\u672c\u5b9a\u4e49\uff0c\/usr\u4e0a\u9762\u653e\u7f6e\u7684\u6570\u636e\u5c5e\u4e8e\u53ef\u5206\u4eab\u7684\u4e0e\u4e0d\u53ef\u53d8\u52a8\u7684(shareable,static)\uff0c\u5047\u5982\u4f60\u6653\u5f97\u600e\u6837\u900f\u8fc7\u7f51\u8def\u8fdb\u884c\u5206\u533a\u7684\u6302\u8f7d(\u6bd4\u5982\u5728\u670d\u52a1\u5668\u7bc7\u4f1a\u63d0\u5230\u7684NFS\u670d\u52a1\u5668)\uff0c\u8fd9\u4e48\/usr\u786e\u5b9e\u53ef\u4ee5\u5206\u4eab\u7ed9\u5c40\u57df\u7f51\u8def\u5185\u7684\u5176\u4ed6\u4e3b\u673a\u6765\u4f7f\u7528\u5594\u3002<\/p>\n
\/usr\u4e0d\u662fuser\u7684\u7b80\u5199\uff0c\u867d\u7136usr\u662fUnixSoftwareResource\u7684\u7b80\u5199\uff0c\u4e5f\u5c31\u662fUnix\u64cd\u4f5c\u7cfb\u7edf\u8f6f\u4ef6\u8d44\u6e90\u6240\u653e\u7f6e\u7684\u76ee\u5f55\uff0c\u800c\u4e0d\u662f\u7528\u6237\u7684\u6570\u636e\u5566\u3002\u8fd9\u70b9\u8981\u6ce8\u610f\u3002FHS\u5efa\u8bae\u6240\u6709\u8f6f\u4ef6\u5f00\u53d1\u8005\uff0c\u5e94\u5f53\u5c06\u5979\u4eec\u7684\u6570\u636e\u5408\u7406\u7684\u5206\u522b\u653e\u7f6e\u5230\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u7684\u6b21\u76ee\u5f55\uff0c\u800c\u4e0d\u8981\u81ea\u884c\u6784\u5efa\u8be5\u8f6f\u4ef6\u81ea\u5df1\u72ec\u7acb\u7684\u76ee\u5f55\u3002<\/p>\n
\u7531\u4e8e\u662f\u6240\u6709\u7cfb\u7edf\u9ed8\u8ba4\u7684\u8f6f\u4ef6(distribution\u53d1\u5e03\u8005\u63d0\u4f9b\u7684\u8f6f\u4ef6)\u5c31\u4f1a\u653e\u7f6e\u5230\/usr\u91cc\u8fb9\uff0c\u56e0\u800c\u8fd9\u4e2a\u76ee\u5f55\u6709\u70b9\u7c7b\u4f3cWindows\u7cfb\u7edf\u7684C:Windows+C:Programfiles\u8fd9\u4e24\u4e2a\u76ee\u5f55\u7684\u7efc\u5408\u4f53\uff0c\u7cfb\u7edf\u521a\u5b89\u88c5\u5b8c\u6bd5\u65f6\uff0c\u8fd9\u4e2a\u76ee\u5f55\u4f1a\u5360\u7528\u6700\u591a\u7684\u786c\u789f\u5bb9\u91cf\u3002\u901a\u5e38\u6765\u8bf4\uff0c\/usr\u7684\u6b21\u76ee\u5f55\u5efa\u8bae\u6709\u4e0b\u8fb9\u8fd9\u79cd\uff1a<\/p>\n
\u76ee\u5f55<\/p>\n
\u5e94\u653e\u7f6e\u6587\u4ef6\u5185\u5bb9<\/p>\n
\/usr\/X11R6\/<\/p>\n
<\/p>\n
\u4e3aXWindowSystem\u91cd\u8981\u6570\u636e\u6240\u653e\u7f6e\u7684\u76ee\u5f55\uff0c\u4e4b\u6240\u4ee5\u8d77\u540d\u4e3aX11R6\u662f\u7531\u4e8e\u6700\u540e\u7684X\u7248\u672c\u4e3a\u7b2c11\u7248\uff0c\u4e14\u8be5\u7248\u7684\u7b2c6\u6b21\u91ca\u51fa\u4e4b\u610f\u3002<\/p>\n
\/usr\/bin\/<\/p>\n
\u7edd\u5927\u90e8\u4efd\u7684\u7528\u6237\u53ef\u4f7f\u7528\u6307\u4ee4\u90fd\u7f6e\u4e8e\u8fd9\u513f\u3002\u8bf7\u6ce8\u610f\u5230\u4ed6\u4e0e\/bin\u7684\u4e0d\u540c\u4e4b\u5904\u3002(\u662f\u5426\u4e0e\u5f00\u673a\u8fc7\u7a0b\u6709\u5173)<\/p>\n
\/usr\/include\/<\/p>\n
c\/c++\u7b49\u7a0b\u5e8f\u8bed\u8a00\u7684\u6863\u5934(header)\u4e0e\u5305\u542b\u6863(include)\u653e\u7f6e\u5904\uff0c\u5f53\u6211\u4eec\u4ee5tarball\u5f62\u5f0f(*.tar.gz\u7684\u5f62\u5f0f\u5b89\u88c5\u8f6f\u4ef6)\u5b89\u88c5\u4e2a\u522b\u6570\u636e\u65f6\uff0c\u4f1a\u4f7f\u7528\u5230\u91cc\u5934\u7684\u8bb8\u591a\u5305\u542b\u6863\u3002<\/p>\n
\/usr\/lib\/<\/p>\n
\u5305\u542b\u5404\u5e94\u7528\u8f6f\u4ef6\u7684\u51fd\u5f0f\u5e93\u3001\u76ee\u6807\u6587\u4ef6(objectfile)\uff0c\u4ee5\u53ca\u4e0d\u88ab\u901a\u5e38\u4f7f\u7528\u8005\u60ef\u7528\u7684\u6267\u884c\u6863\u6216\u811a\u672c(script)\u3002\u4e2a\u522b\u8f6f\u4ef6\u4f1a\u63d0\u4f9b\u4e00\u4e9b\u7279\u6b8a\u7684\u6307\u4ee4\u6765\u8fdb\u884c\u670d\u52a1\u5668\u7684\u8bbe\u5b9a\uff0c\u8fd9\u79cd\u6307\u4ee4\u4e5f\u4e0d\u4f1a\u65f6\u5e38\u88ab\u7cfb\u7edf\u7ba1\u7406\u5458\u64cd\u4f5c\uff0c\u90a3\u624d\u4f1a\u88ab\u6446\u653e\u5230\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u5566\u3002\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5047\u5982\u4f60\u4f7f\u7528\u7684\u662fX86_64\u7684Linux\u7cfb\u7edf\uff0c\u90a3\u53ef\u80fd\u4f1a\u6709\/usr\/lib64\/\u76ee\u5f55\u5f62\u6210<\/p>\n
\/usr\/local\/<\/p>\n
\u7edf\u7ba1\u7406\u5458\u5728\u672c\u673a\u81ea\u884c\u5b89\u88c5\u81ea\u5df1\u4e0b\u8f7d\u7684\u8f6f\u4ef6(\u975edistribution\u9ed8\u8ba4\u63d0\u4f9b\u8005)\uff0c\u5efa\u8bae\u5b89\u88c5\u5230\u6b64\u76ee\u5f55\uff0c\u8fd9\u6837\u4f1a\u6bd4\u8f83\u6613\u4e8e\u7ba1\u7406\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0c\u4f60\u7684distribution\u63d0\u4f9b\u7684\u8f6f\u4ef6\u8f83\u65e7\uff0c\u4f60\u60f3\u5b89\u88c5\u8f83\u65b0\u7684\u8f6f\u4ef6\u4f46\u53c8\u4e0d\u60f3\u79fb\u9664\u65e7\u7248\uff0c\u6b64\u65f6\u4f60\u53ef\u4ee5\u5c06\u65b0\u7248\u8f6f\u4ef6\u5b89\u88c5\u4e8e\/usr\/local\/\u76ee\u5f55\u4e0b\uff0c\u53ef\u4e0e\u5148\u524d\u7684\u65e7\u7248\u8f6f\u4ef6\u6709\u5206\u522b\u5566\u3002\u4f60\u53ef\u4ee5\u81ea\u884c\u5230\/usr\/local\u53bb\u77a7\u77a7\uff0c\u8be5\u76ee\u5f55\u4e0b\u4e5f\u662f\u5177\u6709bin,etc,include,lib\u2026\u7684\u6b21\u76ee\u5f55<\/p>\n
\/usr\/sbin\/<\/p>\n
\u975e\u7cfb\u7edf\u6b63\u5e38\u8fd0\u4f5c\u6240\u987b\u8981\u7684\u7cfb\u7edf\u6307\u4ee4\u3002\u6700\u5e38\u89c1\u7684\u5c31\u662f\u4e2a\u522b\u7f51\u8def\u670d\u52a1\u5668\u8f6f\u4ef6\u7684\u670d\u52a1\u6307\u4ee4(daemon)<\/p>\n
\/usr\/share\/<\/p>\n
\u653e\u7f6e\u5171\u4eab\u6587\u4ef6\u7684\u5730\u65b9\uff0c\u5728\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u653e\u7f6e\u7684\u6570\u636e\u51e0\u4e4e\u662f\u4e0d\u5206\u786c\u4ef6\u6784\u67b6\u5747\u53ef\u8bfb\u53d6\u7684\u6570\u636e\uff0c\u7531\u4e8e\u51e0\u4e4e\u90fd\u662f\u6587\u672c\u6587\u4ef6\u561b\u3002\u5728\u6b64\u76ee\u5f55\u4e0b\u5e38\u89c1\u7684\u8fd8\u6709\u90a3\u4e9b\u6b21\u76ee\u5f55\uff1a\/usr\/share\/man\uff1a\u8054\u673a\u5e2e\u52a9\u6587\u4ef6<\/p>\n
\/usr\/share\/doc\uff1a\u8f6f\u4ef6\u6742\u9879\u7684\u6587\u4ef6\u8bf4\u660e<\/p>\n
\/usr\/share\/zoneinfo\uff1a\u4e0e\u65f6\u533a\u6709\u5173\u7684\u65f6\u533a\u6587\u4ef6<\/p>\n
\/usr\/src\/<\/p>\n
\u901a\u5e38\u539f\u59cb\u7801\u5efa\u8bae\u653e\u7f6e\u5230\u8fd9\u513f\uff0csrc\u6709source\u7684\u610f\u601d\u3002\u81f3\u4e8e\u6838\u5fc3\u539f\u59cb\u7801\u5219\u5efa\u8bae\u653e\u7f6e\u5230\/usr\/src\/linux\/\u76ee\u5f55\u4e0b\u3002<\/p>\n
\u4e09.\/var\u7684\u610f\u4e49\u4e0e\u5185\u5bb9\uff1a<\/p>\n
\u5047\u5982\/usr\u662f\u5b89\u88c5\u65f6\u4f1a\u5360\u7528\u8f83\u5927\u786c\u789f\u5bb9\u91cf\u7684\u76ee\u5f55\uff0c\u8fd9\u4e48\/var\u5c31\u662f\u5728\u7cfb\u7edf\u8fd0\u4f5c\u540e\u624d\u80fd\u9010\u6e10\u5360\u7528\u786c\u789f\u5bb9\u91cf\u7684\u76ee\u5f55\u3002\u7531\u4e8e\/var\u76ee\u5f55\u4e3b\u8981\u9488\u5bf9\u5e38\u6001\u6027\u53d8\u52a8\u7684\u6587\u4ef6\uff0c\u5305\u62ec\u7f13\u5b58(cache)\u3001\u767b\u5f55\u6863(logfile)\u4ee5\u53ca\u4e2a\u522b\u8f6f\u4ef6\u8fd0\u4f5c\u6240\u5f62\u6210\u7684\u6587\u4ef6\uff0c\u5305\u62ec\u7a0b\u5e8f\u6587\u4ef6(lockfile,runfile)\uff0c\u6216\u5219\u8bf8\u5982MySQL\u6570\u636e\u5e93\u7684\u6587\u4ef6\u7b49\u7b49\u3002\u5e38\u89c1\u7684\u6b21\u76ee\u5f55\u6709\uff1a<\/p>\n
\u76ee\u5f55<\/p>\n
\u5e94\u653e\u7f6e\u6587\u4ef6\u5185\u5bb9<\/p>\n
\/var\/cache\/<\/p>\n
<\/p>\n
\u5e94\u7528\u7a0b\u5e8f\u672c\u8eab\u8fd0\u4f5c\u8fc7\u7a0b\u4e2d\u4f1a\u5f62\u6210\u7684\u4e00\u4e9b\u6682\u5b58\u6863<\/p>\n
\/var\/lib\/<\/p>\n
\u7a0b\u5e8f\u672c\u8eab\u6267\u884c\u7684\u8fc7\u7a0b\u4e2d\uff0c\u987b\u8981\u4f7f\u7528\u5230\u7684\u6570\u636e\u6587\u4ef6\u653e\u7f6e\u7684\u76ee\u5f55\u3002\u5728\u6b64\u76ee\u5f55\u4e0b\u5404\u81ea\u7684\u8f6f\u4ef6\u5e94\u5f53\u8981\u6709\u5404\u81ea\u7684\u76ee\u5f55\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0cMySQL\u7684\u6570\u636e\u5e93\u653e\u7f6e\u5230\/var\/lib\/mysql\/\u800crpm\u7684\u6570\u636e\u5e93\u5219\u653e\u5728\/var\/lib\/rpm\u53bb<\/p>\n
\/var\/lock\/<\/p>\n
\u4e2a\u522b\u88c5\u7f6e\u6216\u5219\u662f\u6587\u4ef6\u8d44\u6e90\u4e00\u6b21\u53ea\u80fd\u88ab\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u6240\u4f7f\u7528\uff0c\u5047\u5982\u540c\u65f6\u6709\u4e24\u4e2a\u7a0b\u5e8f\u4f7f\u7528\u8be5\u88c5\u7f6e\u65f6\uff0c\u5c31\u53ef\u80fd\u5f62\u6210\u4e00\u4e9b\u9519\u8bef\u7684\u72b6\u51b5\uff0c\u56e0\u800c\u5c31\u5f97\u8981\u5c06\u8be5\u88c5\u7f6e\u4e0a\u9501(lock)\uff0c\u4ee5\u786e\u4fdd\u8be5\u88c5\u7f6e\u53ea\u4f1a\u7ed9\u5355\u4e00\u8f6f\u4ef6\u6240\u4f7f\u7528\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0c\u523b\u5f55\u673a\u6b63\u5728\u523b\u5f55\u4e00\u5757\u5149\u789f\uff0c\u4f60\u60f3\u4e00\u4e0b\uff0c\u4f1a\u4e0d\u4f1a\u6709\u4e24\u4e2a\u4eba\u540c\u65f6\u5728\u4f7f\u7528\u4e00\u4e2a\u523b\u5f55\u673a\u70e7\u7247\uff1f\u5047\u5982\u4e24\u4e2a\u4eba\u540c\u65f6\u523b\u5f55\uff0c\u90a3\u7247\u5b50\u5199\u5165\u7684\u662f\u8c01\u7684\u6570\u636e\uff1f\u6240\u4ee5\u5f53\u7b2c\u4e00\u4e2a\u4eba\u5728\u523b\u5f55\u65f6\u8be5\u523b\u5f55\u673a\u90fd\u4f1a\u88ab\u4e0a\u9501\uff0c\u7b2c\u4e8c\u4e2a\u4eba\u5c31\u5f97\u8981\u8be5\u88c5\u7f6e\u88ab\u89e3\u9664\u9501\u5b9a(\u5c31\u662f\u524d\u4e00\u4e2a\u4eba\u7528\u5b8c\u4e86)\u624d\u624d\u80fd\u7ee7\u7eed\u4f7f\u7528<\/p>\n
\/var\/log\/<\/p>\n
\u7279\u522b\u91cd\u8981\u3002\u8fd9\u662f\u767b\u9646\u6587\u4ef6\u653e\u7f6e\u7684\u76ee\u5f55\u3002\u4e0a\u9762\u6bd4\u8f83\u91cd\u8981\u7684\u6587\u4ef6\u5982\/var\/log\/messages,\/var\/log\/wtmp(\u8bb0\u5f55\u767b\u5f55\u8005\u7684\u4fe1\u606f)\u7b49\u3002<\/p>\n
\/var\/mail\/<\/p>\n
\u653e\u7f6e\u4e2a\u4eba\u7535\u5b50\u7535\u90ae\u4fe1\u7bb1\u7684\u76ee\u5f55\uff0c\u4e0d\u8fc7\u8fd9\u4e2a\u76ee\u5f55\u4e5f\u88ab\u653e\u7f6e\u5230\/var\/spool\/mail\/\u76ee\u5f55\u4e2d\uff0c\u4e00\u822c\u8fd9\u4e24\u4e2a\u76ee\u5f55\u662f\u4e92\u4e3a\u94fe\u63a5\u6587\u4ef6\u3002<\/p>\n
\/var\/run\/<\/p>\n
\u4e2a\u522b\u7a0b\u5e8f\u6216\u5219\u662f\u670d\u52a1\u542f\u52a8\u540e\uff0c\u4f1a\u5c06\u5979\u4eec\u7684PID\u653e\u7f6e\u5728\u8fd9\u4e2a\u76ee\u5f55\u4e0b<\/p>\n
\/var\/spool\/<\/p>\n
\u8fd9\u4e2a\u76ee\u5f55\u4e00\u822c\u653e\u7f6e\u4e00\u4e9b\u961f\u5217\u6570\u636e\uff0c\u6240\u8c13\u7684\u201c\u961f\u5217\u201d\u5c31\u662f\u6392\u961f\u7b49\u5f85\u5176\u4ed6\u7a0b\u5e8f\u4f7f\u7528\u7684\u6570\u636e\u3002\u8fd9\u79cd\u6570\u636e\u88ab\u4f7f\u7528\u540e\u4e00\u822c\u8fd8\u4f1a\u88ab\u5220\u6389\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0c\u7cfb\u7edf\u6536\u5230\u65b0\u4fe1\u4f1a\u653e\u7f6e\u5230\/var\/spool\/mail\/\u4e2d\uff0c\u4f46\u4f7f\u7528\u8005\u6536\u4e0b\u8be5\u4fe1\u51fd\u540e\u8be5\u5c01\u4fe1\u539f\u5219\u4e0a\u90fd\u4f1a\u88ab\u5220\u6389\u3002\u4fe1\u51fd\u5047\u5982\u6682\u65f6\u5bc4\u4e0d\u51fa\u53bb\u4f1a\u88ab\u653e\u5728\/var\/spool\/mqueue\/\u4e2d\uff0c\u7b49\u5230\u88ab\u9001\u51fa\u540e\u5c31\u88ab\u5220\u6389\u3002\u5047\u5982\u662f\u5de5\u4f5c\u6392\u7a0b\u6570\u636e(crontab)\uff0c\u90fd\u4f1a\u88ab\u653e\u7f6e\u5230\/var\/spool\/cron\/\u76ee\u5f55\u4e2d\u3002<\/p>\n
\u56e0\u4e3aFHS\u4ec5\u662f\u5b9a\u4e49\u51fa\u6700\u4e0b\u5c42(\/)\u53ca\u6b21\u5c42(\/usr,\/var)\u7684\u76ee\u5f55\u5185\u5bb9\u5e94\u5f53\u8981\u653e\u7f6e\u7684\u6587\u4ef6\u6216\u76ee\u5f55\u6570\u636e\uff0c\u56e0\u800c\uff0c\u5728\u5176\u4ed6\u6b21\u76ee\u5f55\u5c42\u7ea7\u5185\uff0c\u5c31\u53ef\u4ee5\u968f\u5f00\u53d1\u8005\u81ea\u884c\u6765\u914d\u7f6e\u4e86\u3002<\/p>\n
\u56db.\u76ee\u5f55\u6811(directorytree):<\/p>\n
\u5728Linux\u4e0b\u8fb9\uff0c\u6240\u6709\u7684\u6587\u4ef6\u4e0e\u76ee\u5f55\u90fd\u662f\u7531\u6839\u76ee\u5f55\u5f00\u59cb\u7684\u3002\u90a3\u662f\u6240\u6709\u76ee\u5f55\u4e0e\u6587\u4ef6\u7684\u6e90\u5934,\u4e4b\u540e\u518d\u4e00\u4e2a\u4e00\u4e2a\u7684\u5206\u652f\u51fa\u6765\uff0c\u56e0\u800c\uff0c\u6211\u4eec\u79f0\u4f5c\u8fd9\u4e9b\u76ee\u5f55\u914d\u7f6e\u65b9\u6cd5\u4e3a\uff1a\u76ee\u5f55\u6811(directorytree),\u8fd9\u4e2a\u76ee\u5f55\u6811\u7684\u4e3b\u8981\u7279\u70b9\u6709\uff1a<\/p>\n
\u76ee\u5f55\u6811\u7684\u542f\u59cb\u70b9\u4e3a\u6839\u76ee\u5f55(\/,root)\uff1b<\/p>\n
\u6bcf\u4e00\u4e2a\u76ee\u5f55\u4e0d\u6b62\u80fd\u4f7f\u7528\u672c\u5730\u7aef\u7684partition\u7684\u6587\u4ef6\u7cfb\u7edf\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u7f51\u8def\u4e0a\u7684filesystem\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0c\u53ef\u4ee5\u501f\u52a9NetworkFileSystem(NFS)\u670d\u52a1\u5668\u6302\u8f7d\u67d0\u7279\u5b9a\u76ee\u5f55\u7b49\u3002<\/p>\n
\u6bcf\u4e00\u4e2a\u6587\u4ef6\u5728\u6b64\u76ee\u5f55\u6811\u4e2d\u7684\u6587\u4ef6\u540d(\u5305\u542b\u5b8c\u6574\u8def\u5f84)\u90fd\u662f\u72ec\u4e00\u65e0\u4e8c\u7684\u3002<\/p>\n
\u5047\u5982\u6211\u4eec\u5c06\u6574\u4e2a\u76ee\u5f55\u6811\u4ee5\u56fe\u7684\u65b9\u5f0f\u6765\u663e\u793a\uff0c\u4f46\u662f\u5c06\u8f83\u4e3a\u91cd\u8981\u7684\u6587\u4ef6\u6570\u636e\u5217\u4e0b\u6765\u7684\u8bdd\uff0c\u8fd9\u4e48\u76ee\u5f55\u6811\u6784\u67b6\u5c31\u5982\u53f3\u56fe\u6240\u793a\uff1a<\/p>\n
<\/p>\n
\u4e94.\u7edd\u5bf9\u8def\u5f84\u4e0e\u76f8\u5bf9\u8def\u5f84<\/p>\n
\u4e0d\u4ec5\u987b\u8981\u975e\u5e38\u6ce8\u610f\u7684FHS\u76ee\u5f55\u914d\u7f6e\u5916\uff0c\u5728\u6587\u4ef6\u540d\u90e8\u4efd\u6211\u4eec\u4e5f\u8981\u975e\u5e38\u6ce8\u610f\u3002\u7531\u4e8e\u6309\u7167\u6863\u540d\u5199\u6cd5\u7684\u4e0d\u540c\uff0c\u4e5f\u53ef\u5c06\u6240\u8c13\u7684\u8def\u5f84(path)\u5b9a\u4e49\u4e3a\u7edd\u5bf9\u8def\u5f84(absolute)\u4e0e\u76f8\u5bf9\u8def\u5f84(relative)\u3002\u8fd9\u4e24\u79cd\u6587\u4ef6\u540d\/\u8def\u5f84\u7684\u5199\u6cd5\u6839\u636e\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n
\u7edd\u5bf9\u8def\u5f84\uff1a<\/p>\n
\u7531\u6839\u76ee\u5f55(\/)\u5f00\u59cb\u5199\u8d77\u7684\u6587\u4ef6\u540d\u6216\u76ee\u5f55\u540d\u79f0\uff0c\u6bd4\u5982\/home\/dmtsai\/.bashrc\uff1b<\/p>\n
\u76f8\u5bf9\u8def\u5f84\uff1a<\/p>\n
\u76f8\u5bf9\u4e8e\u76ee\u524d\u8def\u5f84\u7684\u6587\u4ef6\u540d\u5199\u6cd5\u3002\u8bf8\u5982.\/home\/dmtsai\u6216\u7b49\u7b49\u3002\u603b\u4e4b\u5f00\u5934\u4e0d\u662f\/\u5c31\u5c5e\u4e8e\u76f8\u5bf9\u8def\u5f84\u7684\u5199\u6cd5<\/p>\n
\u800c\u4f60\u5fc5\u9700\u8981\u4e86\u89e3\uff0c\u76f8\u5bf9\u8def\u5f84\u662f\u4ee5\u4f60\u5f53\u524d\u6240\u5728\u8def\u5f84\u7684\u76f8\u5bf9\u4f4d\u7f6e\u6765\u8868\u793a\u7684\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0c\u4f60\u76ee\u524d\u5728\/home\u8fd9\u4e2a\u76ee\u5f55\u4e0b\uff0c\u5047\u5982\u60f3\u8981\u6b65\u5165\/var\/log\u8fd9\u4e2a\u76ee\u5f55\u65f6\uff0c\u53ef\u4ee5\u5982\u4f55\u5199\u5462\uff1f<\/p>\n
cd\/var\/log(absolute)<\/p>\n
cd..\/var\/log(relative)<\/p>\n
\u7531\u4e8e\u4f60\u5728\/home\u4e0b\u8fb9\uff0c\u6240\u4ee5\u8981\u56de\u5230\u4e0a\u4e00\u5c42(..\/)\u4ee5\u540e\uff0c\u80fd\u591f\u7ee7\u7eed\u5f80\/var\u6765\u8054\u901a\u7684\uff0c\u975e\u5e38\u6ce8\u610f\u8fd9\u4e24\u4e2a\u7279\u6b8a\u7684\u76ee\u5f55\uff1a<\/p>\n
.\uff1a\u4ee3\u8868\u5f53\u524d\u7684\u76ee\u5f55\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528.\/\u6765\u8868\u793a\uff1b<\/p>\n
..\uff1a\u4ee3\u8868\u4e0a\u4e00\u5c42\u76ee\u5f55\uff0c\u4e5f\u53ef\u4ee5..\/\u6765\u4ee3\u8868\u3002<\/p>\n
\u8fd9\u4e2a.\u4e0e..\u76ee\u5f55\u6982\u5ff5\u662f\u5f88\u91cd\u8981\u7684\uff0c\u4f60\u7ecf\u5e38\u4f1a\u89c1\u5230cd..\u6216.\/command\u4e4b\u7c7b\u7684\u6307\u4ee4\u4e0b\u8fbe\u65b9\u6cd5\uff0c\u5c31\u662f\u4ee3\u8868\u4e0a\u4e00\u5c42\u4e0e\u76ee\u524d\u6240\u5728\u76ee\u5f55\u7684\u5de5\u4f5c\u72b6\u6001\u3002<\/p>\n
\u5b9e\u4f8b1\uff1a\u600e\u6837\u5148\u6b65\u5165\/var\/spool\/mail\/\u76ee\u5f55\uff0c\u518d\u6b65\u5165\u5230\/var\/spool\/cron\/\u76ee\u5f55\u5185\uff1f<\/p>\n
\u547d\u4ee4<\/a>\uff1a<\/p>\ncd\/var\/spool\/mail<\/p>\n
cd..\/cron<\/p>\n
\u8bf4\u660e\uff1a<\/p>\n
\u56e0\u4e3a\/var\/spool\/mail\u4e0e\/var\/spool\/cron\u662f\u540c\u6837\u5728\/var\/spool\/\u76ee\u5f55\u4e2d\u3002\u8fd9\u4e48\u5c31\u4e0d\u987b\u8981\u5728\u7531\u6839\u76ee\u5f55\u5f00\u59cb\u5199\u8d77\u4e86\u3002\u8fd9\u4e2a\u76f8\u5bf9\u8def\u5f84\u662f\u5341\u5206\u6709\u5e2e\u52a9\u7684\uff0c\u5c24\u5176\u5bf9\u4e8e\u4e2a\u522b\u8f6f\u4ef6\u5f00\u53d1\u5546\u6765\u8bf4\u3002\u901a\u5e38\u6765\u8bf4\uff0c\u8f6f\u4ef6\u5f00\u53d1\u534f\u4f1a\u5c06\u6570\u636e\u653e\u7f6e\u5230\/usr\/local\/\u4e0a\u9762\u7684\u5404\u76f8\u5bf9\u76ee\u5f55\u3002\u4f46\u82e5\u679c\u7528\u6237\u60f3\u8981\u5b89\u88c5\u5230\u4e0d\u540c\u76ee\u5f55\u5462\uff1f\u5c31\u5f97\u8981\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84\u3002<\/p>\n
\u5b9e\u4f8b2\uff1a\u7f51\u8def\u6587\u4ef6\u7ecf\u5e38\u63d0\u53ca\u7c7b\u4f3c.\/run.sh\u4e4b\u7c7b\u7684\u6570\u636e\uff0c\u8fd9\u4e2a\u6307\u4ee4\u7684\u610f\u4e49\u4e3a\u4ec0\u4e48\uff1f<\/p>\n
\u8bf4\u660e\uff1a<\/p>\n
\u56e0\u4e3a\u6307\u4ee4\u7684\u6267\u884c\u987b\u8981\u53d8\u91cf\u7684\u652f\u6301\uff0c\u82e5\u4f60\u7684\u6267\u884c\u6587\u4ef6\u653e\u7f6e\u5728\u672c\u76ee\u5f55\uff0c\u4f46\u662f\u672c\u76ee\u5f55\u5e76\u975e\u6b63\u89c4\u7684\u6267\u884c\u6587\u4ef6\u76ee\u5f55(\/bin,\/usr\/bin\u7b49\u4e3a\u6b63\u89c4)\uff0c\u6b64\u65f6\u8981\u6267\u884c\u6307\u4ee4\u5c31\u5f97\u8981\u4e25\u683c\u6307\u5b9a\u8be5\u6267\u884c\u6863\u3002.\/\u4ee3\u8868\u672c\u76ee\u5f55\u7684\u610f\u601d\uff0c\u6240\u4ee5.\/run.sh\u4ee3\u8868\u6267\u884c\u672c\u76ee\u5f55\u4e0b\uff0c\u540d\u4e3arun.sh\u7684\u6587\u4ef6\u3002<\/p>\n
\u53c2\u8003\u8d44\u6599\uff1a\u300a\u9e1f\u54e5\u7684linux\u79c1\u623f\u83dc<\/strong>\u300b<\/p>\n\u672c\u7cfb\u5217\u6587\u7ae0\uff1a<\/p>\n","protected":false},"excerpt":{"rendered":"
\u4e0d\u8fc7\uff0c\u4ee5\u524d\u7684Linux\u7cfb\u7edf\u4e2d\uff0c\u6211\u4eec\u8fd8\u662f\u4e60\u60ef\u653e\u7f6e\u5728\/usr\/local\u76ee\u5f55\u4e0b\u3002\u5728\u6b64\u76ee\u5f55\u4e0b\u5e38\u89c1\u7684\u8fd8\u6709\u8fd9\u4e9b\u6b21\u76ee\u5f55\uff1a\/usr\/share\/man\uff1a\u8054\u673a\u5e2e\u52a9\u6587\u4ef6\u81f3\u4e8e\u6838\u5fc3\u539f\u59cb\u7801\u5219\u5efa\u8bae\u653e\u7f6e\u5230\/usr\/src\/linux\/\u76ee\u5f55\u4e0b\u3002\u53c2\u8003\u8d44\u6599\uff1a\u300a\u9e1f\u54e5\u7684linux\u79c1\u623f\u83dc\u300b<\/p>\n","protected":false},"author":1,"featured_media":291497,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-291496","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\/291496","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=291496"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/291496\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/291497"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=291496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=291496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=291496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}