Powershell
Basic notes for powershell and its explanations
In Powershell, Get-Help, Get-Command, Get-Alias
are the most handful commands to ever exist
Aliases are the shorthand notes for the commandlets, it lets to identify the correct commandlet of the specified alias
Know the propeties of a command
Reference
Referncing with conditions
Only select contents whose contents are not empty
Head / tail in powershell
The
gettype()
is used to identify the output type from a commandBased on the type of output, we can query it accordingly
Once the type is identified, the parameters that support the ouptut of the commandlet can be identified with
Get-Member
The methods and properties of the specified commandlet can be accessed with
().
operator
The commands can be nested or can be used as a subset with the ()
The
Format-Table, Format-List, Format-Custom
are common ways to show an output
The
2>/dev/null
equivalent of powershell is-ErrorAction
ls -la
of powershellGet-ChildItem -Force
Last updated