The best way to know God is to talk to him and listen to him speak to you (through prayer and Bible reading) daily. Aristotle said, "We are what we repeatedly do. Excellence, then, is not an act, but a habit." That's why I made a resolution to read the Bible through this year. It has been difficult at times, but two months in and I am still on track. I know what this consistent time with God does for me. When I consistently start my day with God's word it is much easier to make good decision throughout my day. The longer I do it, the easier it gets.
But what happens when you're not in that place? What happens when the circumstances of life draw you away from God over and over until you haven't spent time in prayer or the Bible in a long time? What happens when life seems dark and the light at the end of the tunnel is probably a train?
In Deuteronomy 4, God says to obey his laws and decrees so that you may live and may go in and take the land (or receive God's promises). Then later in the chapter he talks about what will happen if you worship idols. But, in verse 26, he says, "But if from there you seek the Lord your God, you will find him if you look for him with all of your heart and all of your soul."