Is there a way to get a list of all commands that match a specific (case insensitive) pattern? So for example, I know the command (which might be an alias) I'm looking for contains "diag" or "Diag" but I'm not sure of the actual command.
I'm currently on Ubuntu with Bash but am asking specifically on this site because I'd love to learn of a way that's usable across various kinds of distros (e.g. I'll need this skill on CentOS and Manjaro later on too).
man iag hoping it would work the same as Powershell's
help iag but that doesn't work.
I've tried my Google-fu but that only seems to lead to explanations on how to find files by partial name of text inside files.
How do you find the exact name of a command if you can remember only part of it?