Linux common commands-103: visudo

visudo command is used to open the /etc/sudoers file for easy editing and setting sudo , which requires root privileges.

Syntax format: visudo [parameter]

Common parameters

Example

 sudo visudo

 # 文件编辑后,可以先检查一下sudo visudo -c

This article is reprinted from https://xugaoxiang.com/2022/09/26/linux-cmds-103-visudo/
This site is for inclusion only, and the copyright belongs to the original author.