The correct answer to this open question is the following.
The long-lasting effects of the ten commandments are that they represent the foundation of the Judeo-Christian religions of the world and established the principles of moral conduct that all of the followers of these religions have to follow in order to reach salvation.
The Ten Commandments were given to Moses directly by God, in Mount Sinai, according to the Old Testament, in the Bible.