sudo is a program for Unix-like computer operating systems that allows users to run programs with the security privileges of another user, by default the superuser. It originally stood for „superuser do“ as the older versions of sudo were designed to run commands only as the superuser. However, the later versions added support for running commands not only as the superuser but also as other (restricted) users, and thus it is also commonly expanded as „substitute user do“. Although the latter case reflects its current functionality more accurately, sudo is still often called „superuser do“ since it is so often used for administrative tasks.
Complete walkthrough how to root Motorola Nexus 6 (shamu) running Android 6.0.1 (Marshmallow).