LoginSignup
11

More than 5 years have passed since last update.

emacs上で、root権限でファイル編集

Last updated at Posted at 2014-12-18

emacs使っているけど、「root権限でファイルを編集したい」という場合。

C-x C-f /sudo::/path/to/file

これで開く。もちろん開くとき(大抵)パスワード必要。

trampを使い、リモートのホストのファイルを sudo で開きたい場合。

C-x C-f /ssh:user@host|sudo:host:/path/to/file

|sudo:host というのを、接続先のホスト名の直後に追加。

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
11