man命令信息页

linux环境下使用man查询一些关键字,一个关键字的介绍可能很多,我们了解一下在这个信息页可以使用的命令:

SUMMARY OF LESS COMMANDS

Commands marked with * may be preceded by a number, N.
Notes in parentheses indicate the behavior if N is given.
A key preceded by a caret indicates the Ctrl key; thus ^K is ctrl-K.

h H Display this help.
q :q Q :Q ZZ Exit.
---------------------------------------------------------------------------

MOVING

e ^E j ^N CR * Forward one line (or N lines).
y ^Y k ^K ^P * Backward one line (or N lines).
f ^F ^V SPACE * Forward one window (or N lines).
b ^B ESC-v * Backward one window (or N lines).
z * Forward one window (and set window to N).
w * Backward one window (and set window to N).
ESC-SPACE * Forward one window, but don‘t stop at end-of-file.
d ^D * Forward one half-window (and set half-window to N).
u ^U * Backward one half-window (and set half-window to N).
ESC-) RightArrow * Left one half screen width (or N positions).

ESC-( LeftArrow * Right one half screen width (or N positions).
F Forward forever; like "tail -f".
r ^R ^L Repaint screen.
R Repaint screen, discarding buffered input.
---------------------------------------------------
Default "window" is the screen height.
Default "half-window" is half of the screen height.
---------------------------------------------------------------------------

SEARCHING

/pattern * Search forward for (N-th) matching line.
?pattern * Search backward for (N-th) matching line.
n * Repeat previous search (for N-th occurrence).
N * Repeat previous search in reverse direction.
ESC-n * Repeat previous search, spanning files.
ESC-N * Repeat previous search, reverse dir. & spanning files.
ESC-u Undo (toggle) search highlighting.
&pattern * Display only matching lines
---------------------------------------------------
A search pattern may be preceded by one or more of:

^N or ! Search for NON-matching lines.
^E or * Search multiple files (pass thru END OF FILE).
^F or @ Start search at FIRST file (for /) or last file (for ?).
^K Highlight matches, but don‘t move (KEEP position).
^R Don‘t use REGULAR EXPRESSIONS.
---------------------------------------------------------------------------

JUMPING

g < ESC-< * Go to first line in file (or line N).
G > ESC-> * Go to last line in file (or line N).
p % * Go to beginning of file (or N percent into file).
t * Go to the (N-th) next tag.
T * Go to the (N-th) previous tag.
{ ( [ * Find close bracket } ) ].
} ) ] * Find open bracket { ( [.
ESC-^F <c1> <c2> * Find close bracket <c2>.
ESC-^B <c1> <c2> * Find open bracket <c1>
---------------------------------------------------
Each "find close bracket" command goes forward to the close bracket
matching the (N-th) open bracket in the top line.

Each "find open bracket" command goes backward to the open bracket
matching the (N-th) close bracket in the bottom line.

m<letter> Mark the current position with <letter>.
‘<letter> Go to a previously marked position.
‘‘ Go to the previous position.
^X^X Same as ‘.
---------------------------------------------------
A mark is any upper-case or lower-case letter.
Certain marks are predefined:
^ means beginning of the file
$ means end of the file
---------------------------------------------------------------------------

CHANGING FILES

:e [file] Examine a new file.
^X^V Same as :e.
:n * Examine the (N-th) next file from the command line.
:p * Examine the (N-th) previous file from the command line.
:x * Examine the first (or N-th) file from the command line.

:d Delete the current file from the command line list.
= ^G :f Print current file name.
---------------------------------------------------------------------------

MISCELLANEOUS COMMANDS

-<flag> Toggle a command line option [see OPTIONS below].
--<name> Toggle a command line option, by name.
_<flag> Display the setting of a command line option.
__<name> Display the setting of an option, by name.
+cmd Execute the less cmd each time a new file is examined.

!command Execute the shell command with $SHELL.
|Xcommand Pipe file between current pos & mark X to shell command.
v Edit the current file with $VISUAL or $EDITOR.
V Print version number of "less".
---------------------------------------------------------------------------

OPTIONS

Most options may be changed either on the command line,

or from within less by using the - or -- command.
Options may be given in one of two forms: either a single
character preceded by a -, or a name preceded by --.

-? ........ --help
Display help (from command line).
-a ........ --search-skip-screen
Search skips current screen.
-A ........ --SEARCH-SKIP-SCREEN
Search starts just after target line.
-b [N] .... --buffers=[N]
Number of buffers.
-B ........ --auto-buffers
Don‘t automatically allocate buffers for pipes.
-c ........ --clear-screen
Repaint by clearing rather than scrolling.
-d ........ --dumb
Dumb terminal.
-D [xn.n] . --color=xn.n
Set screen colors. (MS-DOS only)
-e -E .... --quit-at-eof --QUIT-AT-EOF

-f ........ --force
Force open non-regular files.
-F ........ --quit-if-one-screen
Quit if entire file fits on first screen.
-g ........ --hilite-search
Highlight only last match for searches.
-G ........ --HILITE-SEARCH
Don‘t highlight any matches for searches.
-h [N] .... --max-back-scroll=[N]
Backward scroll limit.
-i ........ --ignore-case
Ignore case in searches that do not contain uppercase.
-I ........ --IGNORE-CASE
Ignore case in all searches.
-j [N] .... --jump-target=[N]
Screen position of target lines.
-J ........ --status-column
Display a status column at left edge of screen.
-k [file] . --lesskey-file=[file]
Use a lesskey file.
-K --quit-on-intr
Exit less in response to ctrl-C.
-L ........ --no-lessopen

Ignore the LESSOPEN environment variable.
-m -M .... --long-prompt --LONG-PROMPT
Set prompt style.
-n -N .... --line-numbers --LINE-NUMBERS
Don‘t use line numbers.
-o [file] . --log-file=[file]
Copy to log file (standard input only).
-O [file] . --LOG-FILE=[file]
Copy to log file (unconditionally overwrite).
-p [pattern] --pattern=[pattern]
Start at pattern (from command line).
-P [prompt] --prompt=[prompt]
Define new prompt.
-q -Q .... --quiet --QUIET --silent --SILENT
Quiet the terminal bell.
-r -R .... --raw-control-chars --RAW-CONTROL-CHARS
Output "raw" control characters.
-s ........ --squeeze-blank-lines
Squeeze multiple blank lines.
-S ........ --chop-long-lines
Chop (truncate) long lines rather than wrapping.

-t [tag] .. --tag=[tag]
Find a tag.
-T [tagsfile] --tag-file=[tagsfile]
Use an alternate tags file.
-u -U .... --underline-special --UNDERLINE-SPECIAL
Change handling of backspaces.
-V ........ --version
Display the version number of "less".
-w ........ --hilite-unread
Highlight first new line after forward-screen.
-W ........ --HILITE-UNREAD
Highlight first new line after any forward movement.
-x [N[,...]] --tabs=[N[,...]]
Set tab stops.
-X ........ --no-init
Don‘t use termcap init/deinit strings.
-y [N] .... --max-forw-scroll=[N]
Forward scroll limit.
-z [N] .... --window=[N]
Set size of window.

-" [c[c]] . --quotes=[c[c]]
Set shell quote characters.
-~ ........ --tilde
Don‘t display tildes after end of file.
-# [N] .... --shift=[N]
Horizontal scroll amount (0 = one half screen width)
........ --no-keypad
Don‘t send termcap keypad init/deinit strings.
........ --follow-name
The F command changes files if the input file is renamed.

---------------------------------------------------------------------------

时间: 2024-10-13 14:36:10

man命令信息页的相关文章

Ubuntu 16.04在启动和关机时不显示启动和关机画面且显示详细的命令信息,没有进度条和Logo,或者只有紫色界面,或者没有开机画面等问题解决

主要有以下解决方法: 1.如果之前配置过Grub来显示详细的命令信息的,那么改回去就行了,参考:http://www.cnblogs.com/EasonJim/p/7129873.html,通过这种方式还原一般都没有问题. 2.如果是Nvidia显卡装了专有驱动,或者是Intel集成显卡装了专有驱动的,通过上面方式还原后一般有关机界面,但是开机界面变成了全紫色.可以参考以下解决方法: 注意:在操作之前必须参考http://www.cnblogs.com/EasonJim/p/7129873.ht

基于 MVVM ,用于快速搭建设置页,个人信息页的框架

写一个小小轮子- 写UITableView的时候,我们经常遇到的是完全依赖于网络请求,需要自定义的动态cell的需求(比如微博帖子列表).但是同时,大多数app里面几乎也都有设置页,个人页等其他以静态表格为主的页面. 而且这些页面的共性比较多: 1. 大多数情况下在进入页面之前就已经拿到所有数据. 2. cell样式单一,自定义cell出现的几率比较小(几乎都是高度为44的cell). 3. 多数都分组. 因为自己非常想写一个开源的东西出来(也可以暴露自己的不足),同时又受限于水平,所以就打算写

flask笔记:7:用户资料信息页和头像

用户信息页 创建一个新的视图函数 app/views.py from app import app,db,lm,models from flask import render_template,flash,redirect,url_for,session,request,g from .forms import LoginForm from .models import User from flask.ext.login import login_user,logout_user,current

命令信息

cmd命令 cmd是command的缩写.即命令提示符(CMD),是在OS / 2 ,Windows CE与Windows NT平台为基础的操作系统(包括Windows 2000和XP中, Vista中,和Server 2003 )下的"MS-DOS 方式".中文版Windows XP 中的命令提示符进一步提高了与DOS下操作命令的兼容性,用户可以在命令提示符直接输入中文调用文件.在9x系统下输入command就可以打开命令行.而在NT系统上可以输入cmd来打开,在windows200

java通过Linux获取命令信息并显示出来

代码如下: package test; import java.io.*; import java.nio.charset.Charset; import java.util.Properties; import com.jcraft.jsch.ChannelExec; import com.jcraft.jsch.JSch; import com.jcraft.jsch.JSchException; import com.jcraft.jsch.Session; import org.apac

思科路由器命令信息

一.模式命令. 首次开机,路由器设备需要初始化,这里我选择no. Router> 用户模式Router>enable 进入特权模式Router# 特权模式 Router#configure terminal 进入全局配置模式Router(config)# 全局配置模式 二.基本命令 Router(config)#hostname RO1 配置路由器名称RO1(config)#enable password 123456 配置登录密码RO1(config)#enable secret 12345

Entity Framework——记录执行的命令信息

有两种方法可以记录执行的SQl语句: 使用DbContext.Database.Log属性 实现IDbCommandInterceptor接口 一 使用DbContext.Database.Log属性 下面截图显示了Database属性和Log属性,可以看出这个属性是一个委托,类型为Action<string> 对Log属性的解释为: Set this property to log the SQL generated by the System.Data.Entity.DbContext t

长文本信息页滚动到当前位置显示相应动画的插件

说明: delayDis 你可以设置要显示元素距离页面可视区域底部多远执行动画 你可以使用内置样式但必须和示例dom结构一样 ro-opacity ro-scale ro-from-right ro-from-left 你可以结合animate.css使用 做出酷炫的出场效果 使用: npm install roll-page --S main.js 里写 import rollPage from 'roll-page'; Vue.use(rollPage) 组件里引用 <roll-page>

Linux 获取命令的帮助信息

?大家好,我是ZYJTF 孤云暮雨,好久没写博客了,今天给大家带来的是"如何获取Linux命令的使用帮助信息" 查询内部命令:help COMMAND...??help是一个内部命令,用于输出shell所有的内部命令和shell内部命令的使用帮助信息??使用语法:????输出shell所有的内部命令:help????输出shell内部命令的使用帮助信息:help COMMAND...????????????????????help 选项 COMMAND...?????# COMMAND