{"id":91114,"date":"2026-08-06T22:48:40","date_gmt":"2026-08-06T14:48:40","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/91114.html"},"modified":"2026-08-06T22:48:40","modified_gmt":"2026-08-06T14:48:40","slug":"%e5%b8%b8%e7%94%a8linux%e5%91%bd%e4%bb%a4%e9%80%9f%e6%9f%a5%e6%89%8b%e5%86%8c%e3%80%90%e7%b2%be%e7%ae%80%e5%ae%9e%e7%94%a8%e7%89%88%e3%80%91","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/91114.html","title":{"rendered":"\u5e38\u7528linux\u547d\u4ee4\u901f\u67e5\u624b\u518c\u3010\u7cbe\u7b80\u5b9e\u7528\u7248\u3011"},"content":{"rendered":"<h2>Linux \u5e38\u7528\u547d\u4ee4\u901f\u67e5\u624b\u518c<\/h2>\n<p>\u6211\u603b\u7ed3\u7f57\u5217\u4e86\u5728\u9879\u76ee\u8fc7\u7a0b\u4e2d\u7ecf\u5e38\u7528\u5230\u7684\u4e00\u4e9bLinux\u547d\u4ee4\uff0c\u4ee5\u4f9b\u5927\u5bb6\u67e5\u9605\u3002<\/p>\n<h3>1. \u7cfb\u7edf\u4fe1\u606f\u4e0e\u57fa\u672c\u64cd\u4f5c<\/h3>\n<h4>\u5e38\u7528\u547d\u4ee4\u901f\u67e5<\/h4>\n<table>\n<tr>\n   \u547d\u4ee4<br \/>\n   \u529f\u80fd\u8bf4\u660e<br \/>\n  <\/tr>\n<tbody>\n<tr>\n<td>ls<\/td>\n<td>\u67e5\u770b\u6587\u4ef6\/\u6587\u4ef6\u5939\u5c5e\u6027<\/td>\n<\/tr>\n<tr>\n<td>pwd<\/td>\n<td>\u67e5\u770b\u5f53\u524d\u76ee\u5f55<\/td>\n<\/tr>\n<tr>\n<td>date<\/td>\n<td>\u67e5\u770b\u7cfb\u7edf\u65f6\u95f4<\/td>\n<\/tr>\n<tr>\n<td>poweroff<\/td>\n<td>\u5173\u673a<\/td>\n<\/tr>\n<tr>\n<td>reboot<\/td>\n<td>\u91cd\u542f\u7cfb\u7edf<\/td>\n<\/tr>\n<tr>\n<td>cat \/etc\/os-release<\/td>\n<td>\u67e5\u770b\u7cfb\u7edf\u7248\u672c<\/td>\n<\/tr>\n<tr>\n<td>uname -a<\/td>\n<td>\u67e5\u770b\u5185\u6838\u7248\u672c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>ls \u547d\u4ee4\u8be6\u89e3<\/h4>\n<p>ls \u662f\u6700\u5e38\u7528\u7684\u76ee\u5f55\u67e5\u770b\u547d\u4ee4\uff0c\u6709\u591a\u79cd\u53c2\u6570\u7ec4\u5408\uff1a<\/p>\n<p><span class=\"token comment\"># \u57fa\u672c\u7528\u6cd5<\/span><br \/>\n<span class=\"token function\">ls<\/span>                 <span class=\"token comment\"># \u5217\u51fa\u5f53\u524d\u76ee\u5f55\u5185\u5bb9<\/span><br \/>\n<span class=\"token function\">ls<\/span> \/path\/to\/dir    <span class=\"token comment\"># \u5217\u51fa\u6307\u5b9a\u76ee\u5f55\u5185\u5bb9<\/span><\/p>\n<p><span class=\"token comment\"># \u5e38\u7528\u53c2\u6570\u7ec4\u5408<\/span><br \/>\n<span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-l<\/span>              <span class=\"token comment\"># \u8be6\u7ec6\u5217\u8868\uff08\u663e\u793a\u6743\u9650\u3001\u5927\u5c0f\u3001\u65f6\u95f4\u7b49\u4fe1\u606f\uff09<\/span><br \/>\n<span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-a<\/span>              <span class=\"token comment\"># \u663e\u793a\u6240\u6709\u6587\u4ef6\uff0c\u5305\u62ec\u9690\u85cf\u6587\u4ef6\uff08\u4ee5 . \u5f00\u5934\uff09<\/span><br \/>\n<span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-lh<\/span>             <span class=\"token comment\"># \u4eba\u7c7b\u53ef\u8bfb\u7684\u5927\u5c0f\u663e\u793a\uff08KB\/MB\/GB\uff09<\/span><br \/>\n<span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-la<\/span>             <span class=\"token comment\"># \u8be6\u7ec6\u5217\u8868 + \u663e\u793a\u6240\u6709\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-l<\/span> \/            <span class=\"token comment\"># \u67e5\u770b\u6839\u76ee\u5f55\u7684\u8be6\u7ec6\u4fe1\u606f<\/span><\/p>\n<h3>2. \u6587\u4ef6\u67e5\u770b\u547d\u4ee4<\/h3>\n<h4>\u5e38\u7528\u6587\u4ef6\u67e5\u770b\u5de5\u5177<\/h4>\n<table>\n<tr>\n   \u547d\u4ee4<br \/>\n   \u529f\u80fd<br \/>\n   \u5e38\u7528\u53c2\u6570<br \/>\n  <\/tr>\n<tbody>\n<tr>\n<td>cat<\/td>\n<td>\u663e\u793a\u6574\u4e2a\u6587\u4ef6\u5185\u5bb9<\/td>\n<td>cat filename<\/td>\n<\/tr>\n<tr>\n<td>less<\/td>\n<td>\u5206\u9875\u6d4f\u89c8\u957f\u6587\u4ef6\uff08\u652f\u6301\u4e0a\u4e0b\u7ffb\u9875\uff09<\/td>\n<td>less filename<\/td>\n<\/tr>\n<tr>\n<td>more<\/td>\n<td>\u5206\u9875\u6d4f\u89c8\u957f\u6587\u4ef6<\/td>\n<td>more filename<\/td>\n<\/tr>\n<tr>\n<td>head<\/td>\n<td>\u67e5\u770b\u6587\u4ef6\u5f00\u5934\u90e8\u5206<\/td>\n<td>head -n 20 filename\uff08\u67e5\u770b\u524d20\u884c\uff09<\/td>\n<\/tr>\n<tr>\n<td>tail<\/td>\n<td>\u67e5\u770b\u6587\u4ef6\u7ed3\u5c3e\u90e8\u5206<\/td>\n<td>tail -n 20 filename\uff08\u67e5\u770b\u540e20\u884c\uff09<\/td>\n<\/tr>\n<tr>\n<td>tail -f<\/td>\n<td>\u5b9e\u65f6\u8ffd\u8e2a\u65e5\u5fd7\u6587\u4ef6\u66f4\u65b0<\/td>\n<td>tail -f \/var\/log\/<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Linux \u5e38\u7528\u547d\u4ee4\u901f\u67e5\u624b\u518c<br \/>\n\u6211\u603b\u7ed3\u7f57\u5217\u4e86\u5728\u9879\u76ee\u8fc7\u7a0b\u4e2d\u7ecf\u5e38\u7528\u5230\u7684\u4e00\u4e9bLinux\u547d\u4ee4\uff0c\u4ee5\u4f9b\u5927\u5bb6\u67e5\u9605\u3002<br \/>\n1. \u7cfb\u7edf\u4fe1\u606f\u4e0e\u57fa\u672c\u64cd\u4f5c<br \/>\n\u5e38\u7528\u547d\u4ee4\u901f\u67e5 \u547d\u4ee4 \u529f\u80fd\u8bf4\u660e ls \u67e5\u770b\u6587\u4ef6\/\u6587\u4ef6\u5939\u5c5e\u6027 pwd \u67e5\u770b\u5f53\u524d\u76ee\u5f55 date \u67e5\u770b\u7cfb\u7edf\u65f6\u95f4 poweroff \u5173\u673a reboot \u91cd\u542f\u7cfb\u7edf cat \/etc\/os-release \u67e5\u770b\u7cfb\u7edf\u7248\u672c uname -a \u67e5\u770b\u5185\u6838\u7248\u672c ls \u547d\u4ee4\u8be6\u89e3<br \/>\nls \u662f\u6700\u5e38\u7528\u7684\u76ee\u5f55\u67e5\u770b\u547d\u4ee4\uff0c\u6709\u591a\u79cd\u53c2\u6570\u7ec4\u5408\uff1a<br \/>\n# \u57fa\u672c\u7528\u6cd5<br \/>\nls            <\/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":[130,58,371,190,44],"topic":[],"class_list":["post-91114","post","type-post","status-publish","format-standard","hentry","category-server","tag-chrome","tag-linux","tag-371","tag-190","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5e38\u7528linux\u547d\u4ee4\u901f\u67e5\u624b\u518c\u3010\u7cbe\u7b80\u5b9e\u7528\u7248\u3011 - \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\/91114.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5e38\u7528linux\u547d\u4ee4\u901f\u67e5\u624b\u518c\u3010\u7cbe\u7b80\u5b9e\u7528\u7248\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Linux \u5e38\u7528\u547d\u4ee4\u901f\u67e5\u624b\u518c \u6211\u603b\u7ed3\u7f57\u5217\u4e86\u5728\u9879\u76ee\u8fc7\u7a0b\u4e2d\u7ecf\u5e38\u7528\u5230\u7684\u4e00\u4e9bLinux\u547d\u4ee4\uff0c\u4ee5\u4f9b\u5927\u5bb6\u67e5\u9605\u3002 1. \u7cfb\u7edf\u4fe1\u606f\u4e0e\u57fa\u672c\u64cd\u4f5c \u5e38\u7528\u547d\u4ee4\u901f\u67e5 \u547d\u4ee4 \u529f\u80fd\u8bf4\u660e ls \u67e5\u770b\u6587\u4ef6\/\u6587\u4ef6\u5939\u5c5e\u6027 pwd \u67e5\u770b\u5f53\u524d\u76ee\u5f55 date \u67e5\u770b\u7cfb\u7edf\u65f6\u95f4 poweroff \u5173\u673a reboot \u91cd\u542f\u7cfb\u7edf cat \/etc\/os-release \u67e5\u770b\u7cfb\u7edf\u7248\u672c uname -a \u67e5\u770b\u5185\u6838\u7248\u672c ls \u547d\u4ee4\u8be6\u89e3 ls \u662f\u6700\u5e38\u7528\u7684\u76ee\u5f55\u67e5\u770b\u547d\u4ee4\uff0c\u6709\u591a\u79cd\u53c2\u6570\u7ec4\u5408\uff1a # \u57fa\u672c\u7528\u6cd5 ls\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/91114.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-06T14:48:40+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<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/91114.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/91114.html\",\"name\":\"\u5e38\u7528linux\u547d\u4ee4\u901f\u67e5\u624b\u518c\u3010\u7cbe\u7b80\u5b9e\u7528\u7248\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-06T14:48:40+00:00\",\"dateModified\":\"2026-08-06T14:48:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/91114.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/91114.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/91114.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5e38\u7528linux\u547d\u4ee4\u901f\u67e5\u624b\u518c\u3010\u7cbe\u7b80\u5b9e\u7528\u7248\u3011\"}]},{\"@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":"\u5e38\u7528linux\u547d\u4ee4\u901f\u67e5\u624b\u518c\u3010\u7cbe\u7b80\u5b9e\u7528\u7248\u3011 - \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\/91114.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5e38\u7528linux\u547d\u4ee4\u901f\u67e5\u624b\u518c\u3010\u7cbe\u7b80\u5b9e\u7528\u7248\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Linux \u5e38\u7528\u547d\u4ee4\u901f\u67e5\u624b\u518c \u6211\u603b\u7ed3\u7f57\u5217\u4e86\u5728\u9879\u76ee\u8fc7\u7a0b\u4e2d\u7ecf\u5e38\u7528\u5230\u7684\u4e00\u4e9bLinux\u547d\u4ee4\uff0c\u4ee5\u4f9b\u5927\u5bb6\u67e5\u9605\u3002 1. \u7cfb\u7edf\u4fe1\u606f\u4e0e\u57fa\u672c\u64cd\u4f5c \u5e38\u7528\u547d\u4ee4\u901f\u67e5 \u547d\u4ee4 \u529f\u80fd\u8bf4\u660e ls \u67e5\u770b\u6587\u4ef6\/\u6587\u4ef6\u5939\u5c5e\u6027 pwd \u67e5\u770b\u5f53\u524d\u76ee\u5f55 date \u67e5\u770b\u7cfb\u7edf\u65f6\u95f4 poweroff \u5173\u673a reboot \u91cd\u542f\u7cfb\u7edf cat \/etc\/os-release \u67e5\u770b\u7cfb\u7edf\u7248\u672c uname -a \u67e5\u770b\u5185\u6838\u7248\u672c ls \u547d\u4ee4\u8be6\u89e3 ls \u662f\u6700\u5e38\u7528\u7684\u76ee\u5f55\u67e5\u770b\u547d\u4ee4\uff0c\u6709\u591a\u79cd\u53c2\u6570\u7ec4\u5408\uff1a # \u57fa\u672c\u7528\u6cd5 ls","og_url":"https:\/\/www.wsisp.com\/helps\/91114.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-06T14:48:40+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/91114.html","url":"https:\/\/www.wsisp.com\/helps\/91114.html","name":"\u5e38\u7528linux\u547d\u4ee4\u901f\u67e5\u624b\u518c\u3010\u7cbe\u7b80\u5b9e\u7528\u7248\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-06T14:48:40+00:00","dateModified":"2026-08-06T14:48:40+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/91114.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/91114.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/91114.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5e38\u7528linux\u547d\u4ee4\u901f\u67e5\u624b\u518c\u3010\u7cbe\u7b80\u5b9e\u7528\u7248\u3011"}]},{"@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\/91114","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=91114"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/91114\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=91114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=91114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=91114"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=91114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}