⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 less.nro

📁 早期freebsd实现
💻 NRO
📖 第 1 页 / 共 3 页
字号:
.TH LESS 1.SH NAMEless \- opposite of more.SH SYNOPSIS.B "less -?".br.B "less [-[+]aBcCdeEfHimMnNqQrsSuUw]".br.B "     [-b \fIbufs\fP] [-h \fIlines\fP] [-j \fIline\fP] [-k \fIkeyfile\fP]".br.B "     [-{oO} \fIlogfile\fP] [-p \fIpattern\fP] [-P \fIprompt\fP] [-t \fItag\fP]".br.B "     [-T \fItagfile\fP] [-x \fItab\fP] [-y \fIlines\fP] [-[z] \fIlines\fP]".br.B "     [+[+]\fIcmd\fP] [\fIfilename\fP]...".SH DESCRIPTION.I Lessis a program similar to .I more(1), but which allows backward movementin the file as well as forward movement.Also,.I lessdoes not have to read the entire input file before starting,so with large input files it starts up faster than text editors like.I vi(1)..I Lessuses termcap (or terminfo on some systems),so it can run on a variety of terminals.There is even limited support for hardcopy terminals.(On a hardcopy terminal, lines which should be printed at the topof the screen are prefixed with an up-arrow.).PPCommands are based on both.I moreand.I vi.Commands may be preceded by a decimal number, called N in the descriptions below.The number is used by some commands, as indicated..SH COMMANDSIn the following descriptions, ^X means control-X.ESC stands for the ESCAPE key; for example ESC-v means thetwo character sequence "ESCAPE", then "v"..IP "h or H"Help: display a summary of these commands.If you forget all the other commands, remember this one..PP.IP "SPACE or ^V or f or ^F"Scroll forward N lines, default one window (see option -z below).If N is more than the screen size, only the final screenful is displayed.Warning: some systems use ^V as a special literalization character..PP.IP "z"Like SPACE, but if N is specified, it becomes the new window size..PP.IP "RETURN or ^N or e or ^E or j or ^J"Scroll forward N lines, default 1.The entire N lines are displayed, even if N is more than the screen size..PP.IP "d or ^D"Scroll forward N lines, default one half of the screen size.If N is specified, it becomes the new default for subsequent d and u commands..PP.IP "b or ^B or ESC-v"Scroll backward N lines, default one window (see option -z below).If N is more than the screen size, only the final screenful is displayed..PP.IP "w"Like ESC-v, but if N is specified, it becomes the new window size..PP.IP "y or ^Y or ^P or k or ^K"Scroll backward N lines, default 1.The entire N lines are displayed, even if N is more than the screen size.Warning: some systems use ^Y as a special job control character..PP.IP "u or ^U"Scroll backward N lines, default one half of the screen size.If N is specified, it becomes the new default for subsequent d and u commands..PP.IP "r or ^R or ^L"Repaint the screen..PP.IP RRepaint the screen, discarding any buffered input.Useful if the file is changing while it is being viewed..PP.IP "F"Scroll forward, and keep trying to read when theend of file is reached.Normally this command would be used when already at the end of the file.It is a way to monitor the tail of a file which is growingwhile it is being viewed.(The behavior is similar to the "tail -f" command.).PP.IP "g or < or ESC-<"Go to line N in the file, default 1 (beginning of file).(Warning: this may be slow if N is large.).PP.IP "G or > or ESC->"Go to line N in the file, default the end of the file.(Warning: this may be slow if N is large,or if N is not specified andstandard input, rather than a file, is being read.).PP.IP "p or %"Go to a position N percent into the file.N should be between 0 and 100.(This works if standard input is being read, but only if.I lesshas already read to the end of the file.It is always fast, but not always useful.).PP.IP "{"If a left curly bracket appears in the top line displayedon the screen,the { command will go to the matching right curly bracket.The matching right curly bracket is positioned on the bottomline of the screen.If there is more than one left curly bracket on the top line,a number N may be used to specify the N-th bracket on the line..PP.IP "}"If a right curly bracket appears in the bottom line displayedon the screen,the } command will go to the matching left curly bracket.The matching left curly bracket is positioned on the topline of the screen.If there is more than one right curly bracket on the top line,a number N may be used to specify the N-th bracket on the line..PP.IP "("Like {, but applies to parentheses rather than curly brackets..PP.IP ")"Like }, but applies to parentheses rather than curly brackets..PP.IP "["Like {, but applies to square brackets rather than curly brackets..PP.IP "]"Like }, but applies to square brackets rather than curly brackets..PP.IP "ESC-^F"Followed by two characters,acts like {, but uses the two characters as open and close brackets,respectively.For example, "ESC ^F < >" could be used to go forward to the > which matches the < in the top displayed line..IP "ESC-^B"Followed by two characters,acts like }, but uses the two characters as open and close brackets,respectively.For example, "ESC ^B < >" could be used to go backward to the < which matches the > in the bottom displayed line..IP mFollowed by any lowercase letter, marks the current position with that letter..PP.IP "'"(Single quote.)Followed by any lowercase letter, returns to the position whichwas previously marked with that letter.Followed by another single quote, returns to the position atwhich the last "large" movement command was executed.Followed by a ^ or $, jumps to the beginning or end of thefile respectively.Marks are preserved when a new file is examined,so the ' command can be used to switch between input files..PP.IP "^X^X"Same as single quote..PP.IP /patternSearch forward in the file for the N-th line containing the pattern.N defaults to 1.The pattern is a regular expression, as recognized by.I ed.The search starts at the second line displayed(but see the -a and -j options, which change this)..spCertain characters are specialif entered at the beginning of the pattern;they modify the type of search rather than become part of the pattern:.RS.IP !Search for lines which do NOT match the pattern..IP *Search multiple files.That is, if the search reaches the end of the current file without finding a match,the search continues in the next file in the command line list..IP @Begin the search at the first line of the first filein the command line list,regardless of what is currently displayed on the screenor the settings of the -a or -j options..RE.PP.IP ?patternSearch backward in the file for the N-th line containing the pattern.The search starts at the line immediately before the top line displayed..spCertain characters are special as in the / command:.RS.IP !Search for lines which do NOT match the pattern..IP *Search multiple files.That is, if the search reaches the beginning of the current file without finding a match,the search continues in the previous file in the command line list..IP @Begin the search at the last line of the last filein the command line list,regardless of what is currently displayed on the screenor the settings of the -a or -j options..RE.PP.IP "ESC-/pattern"Same as "/*"..PP.IP "ESC-?pattern"Same as "?*"..PP.IP nRepeat previous search, for N-th line containing the last pattern.If the previous search was modified by !, the search is made for theN-th line NOT containing the pattern.If the previous search was modified by *, the search continuesin the next (or previous) file if not satisfied in the current file.There is no effect if the previous search was modified by @..PP.IP NRepeat previous search, but in the reverse direction..PP.IP "ESC-n"Repeat previous search, but crossing file boundaries.The effect is as if the previous search were modified by *..PP.IP "ESC-N"Repeat previous search, but in the reverse directionand crossing file boundaries..PP.IP ":e [filename]"Examine a new file.If the filename is missing, the "current" file (see the :n and :p commandsbelow) from the list of files in the command line is re-examined.A percent sign (%) in the filename is replaced by the name of thecurrent file.  A pound sign (#) is replaced by the name of the previously examined file.The filename is inserted into the command line list of filesso that it can be seen by subsequent :n and :p commands.If the filename consists of several files, they are all inserted intothe list of files and the first one is examined..PP.IP "^X^V or E"Same as :e.Warning: some systems use ^V as a special literalization character..PP.IP ":n"Examine the next file (from the list of files given in the command line).If a number N is specified, the N-th next file is examined..PP.IP ":p"Examine the previous file in the command line list.If a number N is specified, the N-th previous file is examined..PP.IP ":x"Examine the first file in the command line list.If a number N is specified, the N-th file in the list is examined..PP.IP "= or ^G or :f"Prints some information about the file being viewed,including its nameand the line number and byte offset of the bottom line being displayed.If possible, it also prints the length of the file,the number of lines in the fileand the percent of the file above the last displayed line..PP.IP \-Followed by one of the command line option letters (see below),this will change the setting of that optionand print a message describing the new setting.If the option letter has a numeric value (such as -b or -h),or a string value (such as -P or -t),a new value may be entered after the option letter.If no new value is entered, a message describingthe current setting is printed and nothing is changed..PP.IP \-+Followed by one of the command line option letters (see below),this will reset the option to its default settingand print a message describing the new setting.(The "\-+\fIX\fP" command does the same thingas "\-+\fIX\fP" on the command line.)This does not work for string-valued options..PP.IP \-\-Followed by one of the command line option letters (see below),this will reset the option to the "opposite" of its default settingand print a message describing the new setting.(The "\-\-\fIX\fP" command does the same thingas "\-\fIX\fP" on the command line.)This does not work for numeric or string-valued options..PP.IP _(Underscore.)Followed by one of the command line option letters (see below),this will print a message describing the current setting of that option.The setting of the option is not changed.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -