テキストエディタ
sudo update-alternatives --config editorを実行し、vimを選択します。この後、sudoedit / etc / hostsはvimを使用して/ etc / hostsを開く必要があります。または、sudを使用することもできます