1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-28 23:55:27 +02:00
tldr/pages/common/visudo.md

360 B

visudo

Safely edit the sudoers file. More information: https://www.sudo.ws/docs/man/visudo.man.

  • Edit the sudoers file:

sudo visudo

  • Check the sudoers file for errors:

sudo visudo {{[-c|--check]}}

  • Edit the sudoers file using a specific editor:

sudo EDITOR={{editor}} visudo

  • Display version information:

visudo {{[-V|--version]}}