Ying Li at myITforum.com

PowerShell & System Center

To get around in PowerShell command console

When we work with windows PowerShell command console, we have access to a host of helpful editing features that are built into the console (Similar like DOS command prompt).

For example, we could edit any command by using the left and right arrow keys to move back and forth to positions within the command and use Backspace or Delete keys to remove characters from the command.

Below are some shortcut key(s) to help us to move around in the PS console more efficiently:

Key(s)                Function
 
Up Arrow              Moves back one position in the command line history buffer.
 
Down Arrow            Moves forward one position in the command line history buffer.
 
Page Up               Moves to the first command stored in the command history buffer.
 
Page Down             Moves to the last command stored in the command line history buffer.
 
Home                  Jumps the cursor to the end of the command line.
 
End                   Jumps the cursor to the end of command line.
 
Ctrl + Left Arrow     Moves the cursor the the left a word at a time.
 
Ctrl + Right Arrow    Moves the cursor to the right a word at a time.

 

Posted: Jul 30 2007, 04:27 PM by yli628 | with no comments
Filed under:

Comments

No Comments