Search This Blog

Friday, April 5, 2013

Powershell tutorial for Linux users

Powershell vs bash Linux commands
Description Linux Bash Powershell
list all available commands Tab Tab gcm
multiple commands with a name foo type -a foo gcm foo
print PATH variable  echo $PATH  echo $env:path
print PATH variable  echo $PATH  echo $env:path
set or export a variable export VARIABLE="foo" $env:VARIABLE="foo"
bash navigation shortcuts - Tab
- history
- Control+U
-Control+K
-Alt+B/Control left
-Alt+F/Control right
- Control+R

- [Tab] Autocomplete folder/file name.
- F7 Show history of previous commands
- F9 Run a specific command from the command history.
- Ctrl Home Erase line to the left.
- Ctrl End  Erase line to the right.
- Ctrl arrow left Move one word to the left (backward)
- Ctrl arrow right Move one word to the right (forward)
- F8 Move backwards through the command history, but only display
commands matching the current text at the command prompt.

References
  1. http://technet.microsoft.com/en-us/library/hh849711.aspx
  2. http://ss64.com/nt/syntax-keyboard.html
  3. http://technet.microsoft.com/en-us/library/ff730964.aspx

1 comment:

  1. See cross command Table on German Wikipedia with PowerShell Alias:
    http://de.wikipedia.org/wiki/Powershell#Cmdlets

    greets Peter Kriegel
    http://www.admin-source.de

    ReplyDelete