Skip to main content
1 of 3
Jorge Castro
  • 72.9k
  • 5
  • 104
  • 189

Recommending sudoedit instead of sudo $editor?

I notice that in some people's answers say "to edit the file, do sudo gedit $file" some people say "sudo nano $file" and of course "sudo vim $file"

By default doing "sudoedit $file" will open the file in the user's preferred editor. I think this is handy because documentation can be consistent regardless of what editor the user prefers. Thoughts?

Jorge Castro
  • 72.9k
  • 5
  • 104
  • 189