Како добити помоћ и пронађу Лог команди у Виндовс ПоверСхелл?
Команда у Поверсхелл-у може имати један или више алијаса. An alias is the command but in a shorter and mostly abbreviated form. Some aliases are made to match bash commands.
Get-ChildItem
Ова команда наводи садржај тренутног радног директоријума.
псеудоним: ls, dir
Get-Alias
Да бисте пронашли псеудоним команде у ПоверСхелл користити Get-Alias команда.
На пример, find all the aliases start with r
get-alias r*
The Get-Alias команда сама има псеудоним gal. The following will do the same thing as above…
gal r*
Get-Alias Такође добија пуну команду над псеудонима
gal ls
Outputs: ls -> Get-ChildItem
We can also find all the aliases of the specified command with the -Definition parameter. На пример, let’s find all the aliases of the Get-ChildItem команда. We use -d which is short for -Definition
gal -d get-childitem
Outputs
dir -> Get-ChildItem gci -> Get-ChildItem ls -> Get-ChildItem
Get-Command finds the commands by command name. Get-Command has the alias gcm. So we can do this…
Гет цмдлетс команде почињу са Гет
gcm -c cmdlet get*
Наведена је исти као….
Get-Command -CommandType Cmdlet Get*
To get help on any of the aliases or commands, just type help in front of the command. На пример…
help cp
