Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

From a comment at

With the ksh, I could type whence -v cd to determine that cd was a tracked alias of say /bin/cd. In PowerShell, cd is an alias of Set-Location, but I only found this out because I typed help cd, and got the Set-Location help page. The whence -v command would report whether the item was a function, alias, tracked alias, or give the file location.

How can we do this in PowerShell?

share|improve this question

Use the Get-Command cmdlet, which has a convenient alias gcm:

> Get-Command cd

CommandType     Name                                               ModuleName
-----------     ----                                               ----------
Alias           cd -> Set-Location
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.