sudo update-alternatives --auto editor

Category: Administration

sudo update-alternatives --auto editor

Restore automatic alternative selection

The --auto flag returns the editor group to automatic mode, where the alternative with the highest priority wins. This undoes a manual --set choice and lets package upgrades re-decide the default. Automatic status shows as auto in --display output.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.