No edit summary |
|||
Line 3: | Line 3: | ||
== Basic Commands == | == Basic Commands == | ||
<syntaxhighlight lang="powershell"> | <syntaxhighlight lang="powershell"> | ||
Cmdlet | Cmdlet #Commands built into shell written in .NET | ||
#Commands built into shell written in .NET | Functions #Commands written in PowerShell language | ||
Functions | Parameter #Argument to a Cmdlet/Function/Script | ||
#Commands written in PowerShell language | Alias #Shortcut for a Cmdlet or Function | ||
Parameter | Script #Text files with .ps1 extension | ||
#Argument to a Cmdlet/Function/Script | Applications #Existing windows programs | ||
Alias | Pipelines #Pass objects Get-process word | Stop-Process | ||
#Shortcut for a Cmdlet or Function | Ctrl+c #Interrupt current command | ||
Script | Left/Right #Navigate editing cursor | ||
#Text files with .ps1 extension | Ctrl+Left/Right #Navigate a word at a time | ||
Applications | Home/End #End Move to start / end of line | ||
#Existing windows programs | Up/Down #Move up and down through history | ||
Pipelines | Insert #Toggles between insert/overwrite mode | ||
#Pass objects Get-process word | Stop-Process | F7 #Command history in a window | ||
Ctrl+c | Tab/Shift-Tab #Command line completion | ||
#Interrupt current command | |||
Left/Right | |||
#Navigate editing cursor | |||
Ctrl+Left/Right | |||
#Navigate a word at a time | |||
Home/End | |||
#End Move to start / end of line | |||
Up/Down | |||
#Move up and down through history | |||
Insert | |||
#Toggles between insert/overwrite mode | |||
F7 | |||
#Command history in a window | |||
Tab/Shift-Tab | |||
#Command line completion | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 10:37, 2 March 2023
Basic Commands
Cmdlet #Commands built into shell written in .NET
Functions #Commands written in PowerShell language
Parameter #Argument to a Cmdlet/Function/Script
Alias #Shortcut for a Cmdlet or Function
Script #Text files with .ps1 extension
Applications #Existing windows programs
Pipelines #Pass objects Get-process word | Stop-Process
Ctrl+c #Interrupt current command
Left/Right #Navigate editing cursor
Ctrl+Left/Right #Navigate a word at a time
Home/End #End Move to start / end of line
Up/Down #Move up and down through history
Insert #Toggles between insert/overwrite mode
F7 #Command history in a window
Tab/Shift-Tab #Command line completion