Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get all aliases for a cmdlet in power shell?

How can I get all aliases for a cmdlet? For example Get-Help cmdlet has gcm and man.

I tried Get-Alias but it gives unwanted answers. My requirement is to get all the aliases for a particular cmdlet.

like image 342
vicky Avatar asked Mar 16 '23 02:03

vicky


1 Answers

You can get this info by using -Definition parameter:

Get-Alias -Definition Get-Help
like image 57
dotnetom Avatar answered Apr 03 '23 16:04

dotnetom