1

Linux常用命令-80:sudo

 1 year ago
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 [参数]

常用参数:

d905183e79e0a7a2.png
# 切换到root
sudo su
# 列出目前的权限
sudo -l
e3c00f43f5fbdaa9.png
# 以root权限执行命令ifconfig -a
sudo ifconfig -a

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK