I know how to set command prompt aliases (using the doskey command) from another stack overflow thread, but given a command prompt, how do I find out which aliases are already set?


Use this command. It will return aliases that are already set.

doskey /MACROS:ALL

Sorry for the short answer but just type

$ alias

This command is available in Linux and cigwin / bash on Windows.

  • Well, the question is tagged bash-alias... – user1686 May 1 '16 at 18:04
  • @DavidPostill it's not clear if he's using bash on windows 10 or just a regular command prompt. I took an assumption it was either cygwin or bash on windows 10. – Iyad K May 1 '16 at 18:10
  • Given that he using doskey and a command prompt I think we can assume the bash-alias tag is a mistake. – DavidPostill May 1 '16 at 18:13
  • Indeed it was, so I removed it now. I refer to windows' regular command prompt. – yuvalm2 May 1 '16 at 18:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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