How to root a Nexus device

I am developing an Android project by Nexus 7. However, when I wanted to see system folders I was rejected by "Permission denied" so I realized that I have to root it. First I tried some "One Key...