mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-31 17:42:07 +00:00
26 lines
430 B
Plaintext
26 lines
430 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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`
|
|
|
|
- Edit the sudoers file using a specific editor:
|
|
|
|
`sudo EDITOR={{editor}} visudo`
|
|
|
|
- Display version information:
|
|
|
|
`visudo --version`
|