码迷,mamicode.com
首页 > 系统相关 > 详细

linux常用命令less选项

时间:2015-01-21 09:01:53      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:linux常用命令less选项

<span style="font-size:18px;">-N  ........  --LINE-NUMBERS
                  Use line numbers. 显示行号.
</span>

<span style="font-size:18px;">-m  -M  ....  --long-prompt  --LONG-PROMPT
                  Set prompt style.  读取文件的百分比,行号及总行数.
</span>
<span style="font-size:18px;">
</span>

<span style="font-size:18px;">q  :q  Q  :Q  ZZ     Exit.</span>

<span style="font-size:18px;"></span><pre name="code" class="plain"><span style="font-size:18px;">   j    Forward  one line   (or N lines).
   k    Backward one line   (or N lines).
  f   Forward  one window (or N lines).
  b    Backward one window (or N lines).
</span>


<span style="font-size:18px;"> /pattern          *  Search forward for (N-th) matching line.
  ?pattern          *  Search backward for (N-th) matching line.
</span>

<span style="font-size:18px;">  g  <  ESC-<       *  Go to first line in file (or line N). 按了g,再输入行号.看看跳转行号效果
  G  >  ESC->       *  Go to last line in file (or line N).</span>

一般情况下用 less file或者less -MN file.

linux常用命令less选项

标签:linux常用命令less选项

原文地址:http://blog.csdn.net/doctor_who2004/article/details/42936685

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!