What is the difference between moral, civil and ceremonial laws. How do we know the moral law? Is it just because of the Bible?

What is the difference between moral, civil and ceremonial laws. How do we know the moral law? Is it just because of the Bible?