Get a list of all the modules in code base This is more of a developer question. 

I need a list of all the modules that are present in my code base. I am not looking for enabled or install modules. I am just looking for all the modules(code) present in my code base.
Use the following command in the terminal at the root of your site.

grep -hr '^name =.*' . | sort


This is the non drush way and also helps me identify the duplicate code for a single module if any.