1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Windows】/etc/hosts ファイルの編集方法

Posted at

はじめに

コマンド上での編集だとうまくいかなかったため、手動でファイルを書き換えました。
参考になれば。。

手順

1.スタートメニューから「メモ帳」を検索し右クリック→管理者権限で実行
※管理者権限で実行しないと、元のファイルを上書きできません。

image.png

2.元のetc/hosts ファイルの中身をコピペして、メモ上で編集

3.編集が終わったら、メモ左上の「ファイル」→「名前を付けて保存」

image.png

ファイル名:C:\Windows\System32\drivers\etc\hosts
ファイルの種類:すべてのファイル

image.png

上記を入力して上書き保存

4.元のetc/hosts ファイルが上書きされていることを確認

参考

コマンド上での操作方法はこちらに書いてくださっています
https://qiita.com/hirokik-0076/items/830f18ed733e65defa58

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?