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

21 lines
337 B
Markdown
Raw Normal View History

# visudo
2016-02-20 01:09:13 +02:00
2016-02-20 01:09:38 +02:00
> Safely edit the sudoers file.
> More information: <https://www.sudo.ws/docs/man/visudo.man>.
2016-02-20 01:09:13 +02:00
- Edit the sudoers file:
2016-02-20 01:09:13 +02:00
`sudo visudo`
- Check the sudoers file for errors:
2016-02-20 01:09:13 +02:00
`sudo visudo -c`
2022-06-27 05:17:40 -05:00
- Edit the sudoers file using a specific editor:
`sudo EDITOR={{editor}} visudo`
- Display version information:
`visudo --version`