P1:
Introduction to Powershell
The beauty of Powershell:
-
it is compatible to unix commands and at the same time created its own-style commands called ‘cmdlets’ featuring Verb-Noun.
-
If you are a linux-user before, you can also use the commands, like ls, pwd, mv etc.
-
those commands also have alias in powershell
you can useget-alias
to check all the alias of commands in powershell
get-alias
, in short,gal
if you want check the alias of one specific unix commands, you could typegal command
example:gal ls CommandType Name Version Source ----------- ----- ------ ------ Alias ls -> Get-ChildItem
If you want to know more details about one specific command,you can type:
get-help ls -Detailed
get-alias -Definition Get-ChildItem
若要查看示例,请键入: “get-help Get-ChildItem -examples
”.
有关详细信息,请键入: “get-help Get-ChildItem -detailed
”.
若要获取技术信息,请键入: “get-help Get-ChildItem -full
”.
有关在线帮助,请键入: "get-help Get-ChildItem -online
get-help Get-ChildItem -showWindow
-
by the way, wildcard(通配符) is also compatible in powershell
-
One thing I think it’s so cool about powershell is that you could use tools,like notepad,calculation etc by just typing
notepad</