Skip to main content
edited tags
Link
moberley
  • 992
  • 6
  • 18
edited tags
Link
moberley
  • 992
  • 6
  • 18
Source Link
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?