How to check RAID configuration in Linux

Originally published at: https://www.cyberciti.biz/faq/how-to-check-raid-configuration-in-linux/

I need to check RAID configuration in Linux. How do you check your current software RAID configuration in a Linux-based server powered by RHEL/CentOS or Debian/Ubuntu Linux?