mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-19 14:01:36 +00:00
Update cheatsheets
This commit is contained in:
25
visudo
Normal file
25
visudo
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
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`
|
||||
Reference in New Issue
Block a user