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

📄 sh.html

📁 unix 下的C开发手册,还用详细的例程。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<p>The following commands are recognised in command mode:<dl compact><dt>newline<dd>Execute the current command line being edited.<dt>&lt;control&gt;-L<dd>Redraw the current command line.Position the cursor at the same location on the new command line.<dt><b>#</b><dd>Insert the character # at the beginning of thecurrent command line andtreat the current command line as a comment.This line will be entered into the command history; see<i><a href="fc.html">fc</a></i>.<dt><b>=</b><dd>Display the possible shell word expansions (see<xref href=wordexp><a href="chap2.html#tag_001_006">Word Expansions</a></xref>)of the bigword at the current command line position.These expansions will be displayed on subsequent terminal lines.If the bigword contains none of the characters "?", "*" or "[",an asterisk(*)will be implicitly assumed at the end.If any directories are matched, these expansionswill have a "/" character appended.After the expansion, theline will be redrawn, the cursor will be repositionedat the current cursor position,and<i>sh</i>will be placed incommand mode.<dt><b>\</b><dd>Perform pathname expansion (see<xref href=pathexp><a href="chap2.html#tag_001_006_006">Pathname Expansion</a></xref>)on the current bigword, upto the largest set of characters that can be matched uniquely.If the bigword contains noneof the characters "?", "*" or "[",an asterisk(*)will be implicitly assumed at the end.This maximal expansion thenwill replace the original bigword in the command line, and the cursorwill be placed after this expansion.If the resulting bigword completely and uniquelymatches a directory,a "/" character will be inserted directly after the bigword.If some other file is completely matched, a single spacecharacter will be inserted after the bigword.After this operation,<i>sh</i>will be placed in insert mode.<dt><b>*</b><dd>Perform pathname expansion on the current bigword and insert allexpansions into the command to replace the currentbigword, with each expansion separated by a singlespacecharacter.If at the end of the line, the current cursor position will be moved tothe first column position following the expansions and<i>sh</i>will be placed in insert mode.Otherwise, the current cursor position will bethe last column position of the first character after the expansions and<i>sh</i>will be placed in insert mode.If the current bigword contains none of the characters "?", "*" or "[",before the operation, an asterisk will be implicitly assumed at the end.<dt><b>@</b><i>letter</i><dd>Insert the value of the alias named_<i>letter</i>The symbol<i>letter</i>represents a single alphabetic character from theportable character set; implementations may supportadditional characters as an extension.If the alias_<i>letter</i>contains other editing commands,these commands will beperformed as part of the insertion.If no alias_<i>letter</i>is enabled, this command will have no effect.<dt><b>[</b><i>count</i><b>]~</b><dd>Convert, if the current character is a lower-case letter,to the equivalent upper-case letter and<i>vice</i>versa<i>,</i>as prescribed by the current locale.The current cursor position then will be advanced by one character.If the cursor was positioned on the last character of the line,the case conversion will occur, but the cursor will not advance.If the~command is preceded by a<i>count</i>,that number of characters will be converted,and the cursor will be advanced tothe character position after the last characterconverted.If the<i>count</i>is larger than the number of characters after the cursor,this is not considered an error;the cursor will advance to the last character on the line.<dt><b>[</b><i>count</i><b>].</b><dd>Repeat the most recent non-motion command, even if it was executed onan earlier command line.If the previous command waspreceded by a<i>count</i>,and no count is given on the "." command,the count from the previous commandwill be included as part of the repeated command.If the "." command is preceded by a<i>count</i>,this will override any<i>count</i>argument to the previous command.The<i>count</i>specified in the "." command will become the count forsubsequent "." commands issued without a count.<dt><b>[</b><i>number</i><b>]v</b><dd>Invoke the<i><a href="vi.html">vi</a></i>editor to edit the current command line in a temporary file.When the editor exits, thecommands in the temporary file will be executed.If a<i>number</i>is prefixed to the command, it specifies the commandnumber in thecommand history to be edited, rather than thecurrent command line.<dt><b>[</b><i>count</i><b>]l</b><dd><dt><b>[</b><i>count</i><b>]</b>&lt;space&gt;<dd>Move the current cursor position to the next character position.If the cursor was positioned on the last character of the line,the terminal will be alertedand the cursor will not be advanced.If the<i>count</i>is larger than the number of characters after the cursor,this is not considered an error;the cursor will advance to the last character on the line.<dt><b>[</b><i>count</i><b>]h</b><dd>Move the current cursor position to the<i>count</i>th(default 1) previous character position.If the cursor was positioned on the first characterof the line,the terminal will be alertedand the cursor will not be moved.If the count islarger than the number of characters before the cursor, thisis not considered an error; the cursor will move to thefirst character on the line.<dt><b>[</b><i>count</i><b>]w</b><dd>Move to the start of the next word.If the cursor was positioned on the last character of the line,the terminal will be alertedand the cursor will not be advanced.If the<i>count</i>is larger than the number of words after the cursor,this is not considered an error;the cursor will advance to the last character on the line.<dt><b>[</b><i>count</i><b>]W</b><dd>Move to the start of the next bigword.If the cursor was positioned on the last character of the line,the terminal will be alertedand the cursor will not be advanced.If the<i>count</i>is larger than the number of bigwords after the cursor,this is not considered an error;the cursor will advance to the last character on the line.<dt><b>[</b><i>count</i><b>]e</b><dd>Move to the end of the current word.If at the end of a word, move to the end of the next word.If the cursor was positioned on the last character of the line,the terminal will be alertedand the cursor will not be advanced.If the<i>count</i>is larger than the number of words after the cursor,this is not considered an error;the cursor will advance to the last character on the line.<dt><b>[</b><i>count</i><b>]E</b><dd>Move to the end of the current bigword.If at the end of a bigword, move to the end of the next bigword.If the cursor was positioned on the last character of the line,the terminal will be alertedand the cursor will not be advanced.If the<i>count</i>is larger than the number of bigwords after the cursor,this is not considered an error;the cursor will advance to the last character on the line.<dt><b>[</b><i>count</i><b>]b</b><dd>Move to the beginning of the current word.If at the beginning of a word, move to the beginning of the previous word.If the cursor was positioned on the first character of the line,the terminal will be alertedand the cursor will not be moved.If the<i>count</i>is larger than the number of wordspreceding the cursor,this is not considered an error;the cursor will return to the first character on the line.<dt><b>[</b><i>count</i><b>]B</b><dd>Move to the beginning of the current bigword.If at the beginningof a bigword, move to the beginning of the previous bigword.If the cursor was positioned on the first character of the line,the terminal will be alertedand the cursor will not be moved.If the<i>count</i>is larger than the number of bigwords preceding the cursor,this is not considered an error;the cursor will return to the first character on the line.<dt><b>^</b><dd>Move the current cursor position to the first character on theinput line that is not ablank character.<dt><b>$</b><dd>Move to the last character position on the current command line.<dt><b>0</b><dd>(Zero.)Move to the first character position on the current command line.<dt><b>[</b><i>count</i><b>]\||</b><dd>Move to the<i>count</i>thcharacter position on the current command line.If no number is specified, move to the first position.The first character position is numbered 1.If the count is larger than the number of characters onthe line, this is not considered an error; thecursor will be placed on the last character on the line.<dt><b>[</b><i>count</i><b>]f</b><i>c</i><dd>Move to the first occurrence of the character<i>c</i>that occurs after the current cursor position.If the cursor was positioned on the last character of the line,the terminal will be alertedand the cursor will not be advanced.If the character<i>c</i>does not occur in the line after thecurrent cursor position,the terminal will be alertedand the cursor will not be moved.<dt><b>[</b><i>count</i><b>]F</b><i>c</i><dd>Move to the first occurrence of the character<i>c</i>that occurs before the current cursor position.If the cursor was positioned on the first character of the line,the terminal will be alertedand the cursor will not be moved.If the character<i>c</i>does not occur in the line before thecurrent cursor position,the terminal will be alertedand the cursor will not be moved.<dt><b>[</b><i>count</i><b>]t</b><i>c</i><dd>Move to the character before the firstoccurrence of the character<i>c</i>that occurs after thecurrent cursor position.If the cursor was positionedon the last character of the line,the terminal will be alertedand the cursor will not be advanced.If the character<i>c</i>does not occur in the line after the current cursor position,the terminal will be alertedand the cursor will not be moved.<dt><b>[</b><i>count</i><b>]T</b><i>c</i><dd>Move to the character after the firstoccurrence of the character<i>c</i>that occurs before thecurrent cursor position.If the cursor was positionedon the first character of the line,the terminal will be alertedand the cursor will not be moved.If the character<i>c</i>does not occur in the line before the current cursor position,the terminal will be alertedand the cursor will not be moved.<dt><b>[</b><i>count</i><b>];</b><dd>Repeat the most recent<b>f</b>,<b>F</b>,<b>t</b>or<b>T</b>command.Any number argumenton that previous command will be ignored.Errors are those described for the repeated command.<dt><b>[</b><i>count</i><b>],</b><dd>Repeat the most recentf,F,torTcommand.Any number argumenton that previous command will be ignored.However, reverse the directionof that command.<dt><b>a</b><dd>Enter insert mode after the current cursor position.Characters that are entered will be inserted before the next character.<dt><b>A</b><dd>Enter insert mode after the end of the current command line.<dt><b>i</b><dd>Enter insert mode at the current cursor position.Charactersthat are entered will be inserted before the current character.<dt><b>I</b><dd>Enter insert mode at the beginning of the current command line.<dt><b>R</b><dd>Enter insert mode, replacing characters from thecommand line beginning at the current cursor position.<dt><b>[</b><i>count</i><b>]c</b><i>motion</i><dd>Delete the characters between the current cursor position and thecursor position that would result from the specified<i>motion</i>command.Then enter insert mode beforethe first character following any deleted characters.If<i>count</i>is specified, it will be applied to themotion command.A<i>count</i>will be ignored for the following motion commands:<pre><code>0    ^    $    c</code></pre>If the<i>motion</i>commandis the character<b>c</b>,the current command line will be cleared andinsert mode will be entered.If the<i>motion</i>command would movethe current cursor position toward the beginning of the command line,the character under the

⌨️ 快捷键说明

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