That is really too broad a question to be answered in this forum. Before even considering rooting, I recommend researching it a great deal. I also recommend joining as a member and engaging with other members who have experience of rooting whatever device you have. You'll be welcome, and they'll gladly help.