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)?
cmd.exe does not have an equivalent command to
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:
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.