Function Description: Executes instructions in other capacities.
Grammar: sudo&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;" [-BHHPV] [-s <shell>] [-u < user] [directive] or sudo [-klv]
Supplemental Note: sudo allows the user to perform the specified instruction in a different capacity, and the preset identity is root. A user with an executable sudo directive is set up in/etc/sudoers. If an unauthorized user attempts to use sudo, a warning message is sent to the administrator. When users use sudo, they must enter a password before they have a 5-minute expiration date, and they must re-enter the password.
Parameters:
-B executes instructions in the background.
-h displays Help.
-H Sets the home environment variable to the new identity home environment variable.
-K ends the expiration of the password, which means that the password will be entered the next time sudo is executed.
-l lists instructions that the current user can execute and cannot execute.
-p To change the hint sign asking for a password.
-s<shell> executes the specified shell.
-u< user > to the specified user as the new identity. If you do not add this parameter, the default is root as the new identity.
-V Extension password expiration 5 minutes.
-V Displays version information.