1
Linux常用命令-80:sudo
source link: https://xugaoxiang.com/2022/06/26/linux-cmds-80-sudo/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
sudo
是一种权限管理机制,管理员可以授权于一些普通用户去执行一些只有 root
才能执行的操作,而不需要知道 root
的密码。默认的配置存放在 /etc/sudoers
文件中。
语法格式:sudo [参数]
常用参数:
# 切换到root
sudo su
# 列出目前的权限
sudo -l
# 以root权限执行命令ifconfig -a
sudo ifconfig -a
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK