Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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.
Required, but never shown