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

viでファイルを編集する

Posted at

viでファイルを編集するために、コンソールに以下の内容を入力してください。
ファイル名の部分には、自分が編集したいファイルを入力してください。

vi ファイル名

すると、ファイルの中身を開くことができますが、このままでは編集できません。
コンソールモードに切り替える必要があります。
まず、[shift]と[o]を入力してください。
これでファイルが編集できるようになります。
編集が終わったら、[Esc]キーを入力してください。
[:wq]と入力し、[enter]キーを押せば、編集した内容が保存されます。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?