{"id":15959,"date":"2023-09-20T20:09:42","date_gmt":"2023-09-20T12:09:42","guid":{"rendered":"https:\/\/www.linuxcool.com\/lmlsyjq"},"modified":"2023-09-20T20:09:42","modified_gmt":"2023-09-20T12:09:42","slug":"lmlsyjq","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lmlsyjq","title":{"rendered":"Linux less\u547d\u4ee4\u5b9e\u7528\u6280\u5de7"},"content":{"rendered":"<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><a style='color:#0000CC' href='https:\/\/www.linuxprobe.com\/' target='_blank' rel=\"noopener\">Linux<\/a><a style='color:#0000CC' href='https:\/\/www.linuxdown.com\/' target='_blank' rel=\"noopener\">\u7cfb\u7edf<\/a>\u4e2d\uff0cless<a style='color:#0000CC' href='https:\/\/www.linuxcool.com\/' target='_blank' rel=\"noopener\">\u547d\u4ee4<\/a>\u662f\u4e00\u79cd\u7528\u4e8e\u67e5\u770b\u6587\u4ef6\u5185\u5bb9\u7684\u5de5\u5177\u3002\u5b83\u6bd4\u4f20\u7edf\u7684more\u547d\u4ee4\u529f\u80fd\u66f4\u5f3a\u5927\uff0c\u53ef\u4ee5\u5728\u67e5\u770b\u6587\u4ef6\u65f6\u8fdb\u884c\u641c\u7d22\u3001\u8df3\u8f6c\u3001\u7ffb\u9875\u7b49\u64cd\u4f5c\u3002\u4e0b\u9762\u5c06\u4ecb\u7ecdless\u547d\u4ee4\u7684\u4f7f\u7528\u65b9\u6cd5\u548c\u4e00\u4e9b\u5b9e\u7528\u6280\u5de7\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>1.\u5feb\u901f\u6d4f\u89c8\u6587\u4ef6<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4f7f\u7528less\u547d\u4ee4\u53ef\u4ee5\u5feb\u901f\u6d4f\u89c8\u5927\u6587\u4ef6\u5185\u5bb9<strong>linux less\u547d\u4ee4<\/strong>\uff0c\u800c\u65e0\u9700\u4e00\u6b21\u6027\u52a0\u8f7d\u6574\u4e2a\u6587\u4ef6\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u6253\u5f00\u4e00\u4e2a\u6587\u4ef6\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre>\nless \u6587\u4ef6\u540d\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u6309\u4e0b\u7a7a\u683c\u952e\u53ef\u4ee5\u5411\u4e0b\u7ffb\u9875<strong>linux less\u547d\u4ee4<\/strong>\uff0c\u6309\u4e0bb\u952e\u53ef\u4ee5\u5411\u4e0a\u7ffb\u9875\u3002\u540c\u65f6\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528Page Up\u548cPage Down\u952e\u8fdb\u884c\u7ffb\u9875\u64cd\u4f5c\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>2.\u641c\u7d22\u5173\u952e\u8bcd<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5728less\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528&ldquo;\/&rdquo;\u52a0\u5173\u952e\u8bcd\u7684\u65b9\u5f0f\u8fdb\u884c\u641c\u7d22\u3002\u4f8b\u5982\uff0c\u8981\u641c\u7d22\u6587\u4ef6\u4e2d\u7684&ldquo;hello&rdquo;\u5173\u952e\u8bcd\uff0c\u53ef\u4ee5\u8f93\u5165\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre>\n\/ hello\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u6309\u4e0bn\u952e\u53ef\u4ee5\u5b9a\u4f4d\u5230\u4e0b\u4e00\u4e2a\u5339\u914d\u7684\u5173\u952e\u8bcd\u4f4d\u7f6e\uff0c\u6309\u4e0bN\u952e\u5219\u4f1a\u5b9a\u4f4d\u5230\u4e0a\u4e00\u4e2a\u5339\u914d\u7684\u5173\u952e\u8bcd\u4f4d\u7f6e\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>3.\u8df3\u8f6c\u5230\u6307\u5b9a\u884c<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u901a\u8fc7\u5192\u53f7\u52a0\u884c\u6570\u7684\u65b9\u5f0f\u53ef\u4ee5\u5feb\u901f\u8df3\u8f6c\u5230\u6307\u5b9a\u884c\u3002\u4f8b\u5982linux\u66f4\u6539ip\u5730\u5740\uff0c\u8981\u8df3\u8f6c\u5230\u7b2c10\u884c\uff0c\u53ef\u4ee5\u8f93\u5165\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre>\n:10\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u540c\u65f6\u4e5f\u652f\u6301\u76f8\u5bf9\u8df3\u8f6c\uff0c\u4f8b\u5982\u8f93\u5165&ldquo;+10&rdquo;\u8868\u793a\u5411\u540e\u8df3\u8f6c10\u884c\uff0c&ldquo;-10&rdquo;\u8868\u793a\u5411\u524d\u8df3\u8f6c10\u884c\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>4.\u663e\u793a\u884c\u53f7<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4f7f\u7528less\u547d\u4ee4\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7&ldquo;-N&rdquo;\u9009\u9879\u6765\u663e\u793a\u6587\u4ef6\u7684\u884c\u53f7\u3002\u4f8b\u5982\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre>\nless -N\u6587\u4ef6\u540d\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u8fd9\u6837\u53ef\u4ee5\u5728\u6d4f\u89c8\u6587\u4ef6\u65f6\u65b9\u4fbf\u5730\u77e5\u9053\u5f53\u524d\u6240\u5728\u884c\u7684\u884c\u53f7\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>5.\u67e5\u770b\u6587\u4ef6\u5927\u5c0f\u548c\u8fdb\u5ea6<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5728less\u4e2d\uff0c\u53ef\u4ee5\u6309\u4e0b&ldquo;=&rdquo;\u952e\u6765\u663e\u793a\u5f53\u524d\u6587\u4ef6\u7684\u5927\u5c0f\u548c\u8fdb\u5ea6\u4fe1\u606f\u3002\u8fd9\u5bf9\u4e8e\u67e5\u770b\u5927\u6587\u4ef6\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>6.\u641c\u7d22\u66ff\u6362<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u9664\u4e86\u641c\u7d22\u5173\u952e\u8bcd\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528&ldquo;&amp;&rdquo;\u52a0\u66ff\u6362\u8bcd\u7684\u65b9\u5f0f\u8fdb\u884c\u641c\u7d22\u66ff\u6362\u3002\u4f8b\u5982\uff0c\u8981\u5c06\u6587\u4ef6\u4e2d\u7684&ldquo;hello&rdquo;\u66ff\u6362\u4e3a&ldquo;world&rdquo;\uff0c\u53ef\u4ee5\u8f93\u5165\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre>\n&amp; hello world\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u6309\u4e0bn\u952e\u53ef\u4ee5\u7ee7\u7eed\u67e5\u627e\u4e0b\u4e00\u4e2a\u5339\u914d\u7684\u5173\u952e\u8bcd\u5e76\u8fdb\u884c\u66ff\u6362\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>7.\u590d\u5236\u7c98\u8d34\u5185\u5bb9<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5728less\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u9f20\u6807\u8fdb\u884c\u6587\u672c\u9009\u62e9\uff0c\u5e76\u901a\u8fc7\u9f20\u6807\u53f3\u952e\u6765\u590d\u5236\u9009\u4e2d\u7684\u5185\u5bb9\u3002\u6309\u4e0b\u9f20\u6807\u6eda\u8f6e\u5373\u53ef\u7c98\u8d34\u5df2\u590d\u5236\u7684\u5185\u5bb9\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>8.\u9000\u51faless<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5728\u6d4f\u89c8\u6587\u4ef6\u65f6\uff0c\u53ef\u4ee5\u6309\u4e0bq\u952e\u6765\u9000\u51faless\u547d\u4ee4\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u901a\u8fc7\u4e0a\u8ff08\u70b9\u4ecb\u7ecd\u6df1\u5ea6linux\uff0c\u76f8\u4fe1\u5927\u5bb6\u5bf9\u4e8e<strong>linux less\u547d\u4ee4<\/strong>\u6709\u4e86\u66f4\u6df1\u5165\u7684\u4e86\u89e3\u3002\u5e0c\u671b\u8fd9\u4e9b\u6280\u5de7\u80fd\u591f\u5e2e\u52a9\u5927\u5bb6\u66f4\u9ad8\u6548\u5730\u67e5\u770b\u548c\u5904\u7406\u6587\u4ef6\u5185\u5bb9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u7cfb\u7edf\u4e2d\uff0cless\u547d\u4ee4\u662f\u4e00\u79cd\u7528\u4e8e\u67e5\u770b\u6587\u4ef6\u5185\u5bb9\u7684\u5de5\u5177\u3002\u5b83\u6bd4\u4f20\u7edf\u7684more\u547d\u4ee4\u529f\u80fd\u66f4\u5f3a\u5927\uff0c\u53ef\u4ee5\u5728\u67e5\u770b\u6587\u4ef6\u65f6\u8fdb\u884c\u641c\u7d22\u3001\u8df3\u8f6c\u3001\u7ffb\u9875\u7b49\u64cd\u4f5c\u3002\u4e0b\u9762\u5c06\u4ecb\u7ecdless\u547d\u4ee4\u7684\u4f7f\u7528\u65b9\u6cd5\u548c\u4e00\u4e9b\u5b9e\u7528\u6280\u5de7\u3002\u4f8b\u5982\uff0c\u8981\u641c\u7d22\u6587\u4ef6\u4e2d\u7684&ldquo;hello&rdquo;\u5173\u952e\u8bcd\uff0c\u53ef\u4ee5\u8f93\u5165\uff1a\u9000\u51falessless\u547d\u4ee4\u6709\u4e86\u66f4\u6df1\u5165\u7684\u4e86\u89e3\u3002\u5e0c\u671b\u8fd9\u4e9b\u6280\u5de7\u80fd\u591f\u5e2e\u52a9\u5927\u5bb6\u66f4\u9ad8\u6548\u5730\u67e5\u770b\u548c\u5904\u7406\u6587\u4ef6\u5185\u5bb9\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[885,37,32,406,884],"class_list":["post-15959","post","type-post","status-publish","format-standard","hentry","category-knowledge","tag-gj-4","tag-ml","tag-wj","tag-th","tag-tz-3"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/15959","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=15959"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/15959\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=15959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=15959"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=15959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}