Article Updated: 2020-03-03
A, PowerShell Profile
To be honest, I always feel PowerShell cmd is an enhanced version, but look at the official presentation, function is very powerful, we use to be discovered.
Two, PowerShell use
1, commonly used commands
The following list shows common cmd.exe and UNIX commands that can be used in PowerShell:
2, Command Aliases
Get-Alias cmdlet
You can view an alias,
for example Get-Alias cat
Set-Alias cmdlet
you can set an alias,
such asSet-Alias -Name gi -Value Get-Item
Noun or title | abbreviation |
---|---|
Get | g |
Set | s |
Item | i |
Location | l |
Command | cm |
Alias | al |
Get-Item | give |
Set-Item | and |
Get-Location | gl |
Set-Location | sl |
Get-Command | gcm |
Get-Alias | gal |
Third, view the help information
1、Get-Help
Get-Help Get-ChildItem
Can be obtained on Get-ChildItem
the help information
or useGet-ChildItem -?
2、man Get-ChildItem
NOTE: The following Get-ChildItem
refers to the specific command.
To display only a help content, you can use man Get-ChildItem
to view information about Get-ChildItem
help information.
To display detailed information, you can use Get-Help Get-ChildItem -Detailed
to get.
To show all the help information can be used Get-Help Get-ChildItem -Full
to get.
To get more information on the parameters of a command can be used Get-Help Get-ChildItem -Parameter *
to get.
To show only examples help content, but use Get-Help Get-ChildItem -Examples
to obtain.
To get online help content, you can use Get-Help Get-ChildItem -Online
to get.
Fourth, landscaping PowerShell interface
1, adjust the size of PowerShell
For easy viewing content, you can transfer large window font, but the attendant window is also bigger, even more than the screen size, very unfriendly. Here you can adjust the height of the window title bar right in PowerShell, property layout. Here was adjusted to 2000, you can adjust according to the actual situation.
2, adjust the color of PowerShell
To look good, you can adjust the background color PowerShell, font and color properties, color. And transparency.