I want to redirect some sites to localhost. I can use hosts file which resides in directory C:\WINDOWS\system32\drivers\etc in windows.
Which is equivalent of this file in Ubuntu?
I want to redirect some sites to localhost. I can use hosts file which resides in directory C:\WINDOWS\system32\drivers\etc in windows.
Which is equivalent of this file in Ubuntu?
In Ubuntu it is /etc/hosts. You can edit the file as same in other OSes.
/etc/hosts file in Ubuntu, why does Ubuntu have a resolve.conf file too?"
– Danny Varod
Apr 11 '21 at 15:16