shell

Get-Process | Where-Object { $_.CPU -gt 10 } | Select-Object Name, CPU

That is the shape of the shell Commands, pipeline, filtering, projection

Objects, not text

Most shells pass text between commands PowerShell passes .NET objects No parsing of ls output, no splitting on spaces, no guessing which column is which

History and completion

  • persistent command history
  • tab completion and command prediction
  • aliases for common commands

Those are quality of life features They are also what makes a shell usable at 3AM

Help

Get-Help Get-Process

The help system resembles Unix man pages Read it before guessing a parameter

Next

Variables in 02 variables

Test this in your lab first

Posted