Edit root-owned files safely
medium risk
Opens a temporary copy in your editor and writes it back as root.
sudoedit /etc/hostsEdit · explain & risk-check →Reference text is hand-written and may be incomplete — check man sudoedit for your version. Test destructive commands on a non-production system first.