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

How can I find out where a program is running from, or if it is an alias (and if it is an alias, then what it is an alias to)?

share|improve this question

migrated from Dec 1 '11 at 1:34

This question came from our site for system and network administrators.

Do you mean under Windows? – Paul Dec 1 '11 at 2:23
up vote 1 down vote accepted

cmd.exe does not have an equivalent command to bash's type. The type command in cmd.exe operates like Unix's cat, and borrows the name from the old CP/M command of the same name.

Unless a third-party program is installed, the only way to do aliases in cmd.exe is through the old doskey /macros command - use doskey /macros:all to list all active ones - which is likely always going to return empty since no one uses them nor has since about 1993 or so.

The following are cmd.exe's "builtins", or commands internal to it:

{drive-letter}: :{line-label} call cd chcp chdir color copy ctty date del delete dir echo endlocal era erase exit for goto help if lh loadhigh path popd prompt pushd prompt rem ren rename rmdir rd set setlocal shift time title type ver verify

share|improve this answer

Since cmd.exe itself doesn't support aliases, you can probably get away with using which instead. If you are using any addons which provide aliases, consult their documentation.

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.