Changes

Jump to: navigation, search

The Basics of the Windows PowerShell 1.0 Interactive Shell

1,649 bytes added, 20:35, 12 November 2008
PowerShell Command Line Editing Keys
PowerShell provides a number of special key sequences which speed the task of creating and editing commands in the interactive shell, each of which is outlined in the following table:
 
<table border="1" cellpadding="5" cellspacing="0" id="E3B" style="border-collapse: collapse; border-color:#cccccc; border-style: solid; border-width: 1px; margin-bottom:20px">
<tr bgcolor="#cccccc" style="color:black" valign="top">
<th>
<p>Key Sequence</p>
</th>
<th>
<p>Description</p>
</th>
</tr>
 
<tr>
<td>
<p>Left Arrow</p>
</td>
<td>
Moves the command line cursor one character to the left.
</td>
</tr>
 
<tr bgcolor="#e9e9e6">
<td>
Right Arrow
</td>
<td>
Moves the command line cursor one character to the right.
</td>
</tr>
 
<tr>
<td>
<p>Ctrl+Left Arrow</p>
</td>
<td>
Moves the command line cursor one word to the left.
</td>
</tr>
 
<tr bgcolor="#e9e9e6">
<td>
Ctrl+Right Arrow
</td>
<td>
Moves the command line cursor one word to the right.
</td>
</tr>
 
<tr>
<td>
<p>Delete</p>
</td>
<td>
Deletes the character in the command line at the current cursor position.
</td>
</tr>
 
<tr bgcolor="#e9e9e6">
<td>
Backspace
</td>
<td>
Deletes the character immediately to the right of the current cursor position.
</td>
</tr>
 
<tr>
<td>
Insert
</td>
<td>
Toggles between character insert and overwrite modes.
</td>
</tr>
 
<tr bgcolor="#e9e9e6">
<td>
Home
</td>
<td>
Relocates the cursor to the beginning of the command line.
</td>
</tr>
 
<tr>
<td>
End
</td>
<td>
Relocates the cursor to the end of the command line.
</td>
</tr>
 
<tr bgcolor="#e9e9e6">
<td>
Tab
</td>
<td>
Performs command completion operation whereby the shell attempts to guess at the remainder of the command being entered.
</td>
</tr>
 
<tr>
<td>
F7
</td>
<td>
Displays a new window containing the command history from which previous commands may be selected.
</td>
</tr>
</table>

Navigation menu