Use o cmdlet Get-Command , que tem um alias conveniente gcm :
> Get-Command cd CommandType Name ModuleName ----------- ---- ---------- Alias cd -> Set-Location
De um comentário no link :
With the ksh, I could type
whence -v cdto determine thatcdwas a tracked alias of say/bin/cd. In PowerShell,cdis an alias ofSet-Location, but I only found this out because I typedhelp cd, and got theSet-Locationhelp page. Thewhence -vcommand would report whether the item was a function, alias, tracked alias, or give the file location.
Como podemos fazer isso no PowerShell?
Use o cmdlet Get-Command , que tem um alias conveniente gcm :
> Get-Command cd CommandType Name ModuleName ----------- ---- ---------- Alias cd -> Set-Location
Tags powershell