sudo
is a permission management mechanism. Administrators can authorize ordinary users to perform operations that only root
can perform without knowing the root
password. The default configuration is stored in the /etc/sudoers
file.
Syntax format: sudo [parameter]
Common parameters:
Example
# 切换到root sudo su
# 列出目前的权限sudo -l
# 以root权限执行命令ifconfig -a sudo ifconfig -a
This article is reprinted from https://xugaoxiang.com/2022/06/26/linux-cmds-80-sudo/
This site is for inclusion only, and the copyright belongs to the original author.