Skip to content

Instantly share code, notes, and snippets.

View rpalo's full-sized avatar

Ryan Palo rpalo

View GitHub Profile
PS> "2" + 2
22 # A string
PS> [Int] "2" + 2
4 # An integer. The conversion only applies to the "2"
PS> Get-Command Get-Alias | Format-List
PS> Get-Alias
PS> Get-Command
PS> Get-Command Get-Help | Format-List
# Or, if you're feeling cheeky:
PS> Get-Help Get-Help
PS> Get-Help command
# You can also get help by adding the ? parameter
PS> command -?
PS> Get-Command -noun Job
PS> Get-ChildItem
# You can also do:
PS> gci
PS> dir
# And, just to make you feel a little more at home...
PS> ls
PS> Get-ChildItem
$ ls -l