1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

sudoersファイルの編集時にnanoが立ち上がってブチ切れる前に!

Posted at

Ubuntuでsudoersのファイルを編集時になにも設定してない場合はデフォルトのnanoが立ち上がって操作がわからず、ブチ切れることがあるんだけど、、そんなことにならんように以下を備忘録。
もちろん個人の環境変数ににEDITORを登録しておけばいいだけの話だけど、よく忘れるので。

  • vim をエディタに使う場合
$ EDITOR=vim sudo -E visudo
  • emacsをエディタに使う場合
$ EDITOR=emacs sudo -E visudo
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?