I've entered the following into the hosts file
127.0.0.1 www.facebook.com
127.0.0.2 www.youtube.com
how can I delete the above entries from the file using cmd?
Asked
Active
Viewed 1,798 times
0

Ross Ridge
- 38,414
- 7
- 81
- 112

jNerd
- 181
- 3
- 11
-
1possible duplicate of [Windows Batch: How to add Host-Entries?](http://stackoverflow.com/questions/3666740/windows-batch-how-to-add-host-entries) – LittleBobbyTables - Au Revoir Mar 24 '15 at 15:14
-
@LittleBobbyTables please explain how **adding** entries is a duplicate of **removing** entries? Adding is easy, removing is harder ;) – DavidPostill Mar 24 '15 at 17:03
-
@DavidPostill - if comments don't make sense, when in doubt, feel free to look at the original version of the question; when I commented, it hadn't been edited – LittleBobbyTables - Au Revoir Mar 24 '15 at 17:04
-
@LittleBobbyTables that was a quick reply ;) but I see your point ... – DavidPostill Mar 24 '15 at 17:05
-
@EmrysMyrooin How is a link to www.google.com constructive? – DavidPostill Mar 24 '15 at 17:06
-
@DavidPostill Sorry there's no fault of LittleBobbyTables. When he marked my question duplicate It was in original form that was indeed a duplicate. – jNerd Mar 25 '15 at 06:30