mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
442 B
Plaintext
26 lines
442 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|--check]}}`
|
|
|
|
- Edit the sudoers file using a specific editor:
|
|
|
|
`sudo EDITOR={{editor}} visudo`
|
|
|
|
- Display version:
|
|
|
|
`visudo {{[-V|--version]}}`
|