compgen -cYou can parse information for a single command:
compgen -c | grep aproposYou can also use -a for aliases, -b for bash built-ins and -k for bash keys, as well as `-A function` for functions. You can then string ’em together:
compgen -abckA functionI won’t paste the output but I’ll let you pipe it to grep to compgen like a boss. Enjoy!
krypted January 15th, 2014