0
0

More than 3 years have passed since last update.

AWSのEC2利用する際忘れてしまうコマンドメモ

Last updated at Posted at 2021-02-10

結構 オンプレ と違うのでメモを表記失礼します。

sudo -i
でrootに移動する。

ec2-userでviを編集した保存する場合は
E45: 'readonly' option is set (add ! to override) が出た場合に保存する方法

入力モードをescで抜ける

コマンドモードで下記を実行

:w !sudo tee %
強制脱出
:q!

私はファイル検索はlocateを多用していたので使えなくて困っていたのですが

$ sudo updatedb

とすると
locate test
が使える。

また何か思い出したらコチラに表記する予定

0
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
0
0