![]() ![]() $ chmod 744 /usr/local/share/hs/hosts.normal $ cp /etc/hosts /usr/local/share/hs/hosts.normal Now to start with, let’s make a copy of the existing /etc/hosts file in this directory. So switch to root using sudo -s first (you’ll need to be an administrator to do this). You’ll need to do all of this as a root user. We’ll store all the /etc/hosts type files in /usr/local/share/hs. There’s no reason why an adaptation of this method wouldn’t work in Linux as well. Using this new method you can have a folder that you can add hosts configurations to, and those files become available for switching into /etc/hosts straight away. ![]() Since then I’ve actually extended this method into a tool that can manage multiple /etc/hosts files. That post is pretty popular and clearly been useful to a few people. Managing multiple /etc/hosts files in Mac OS XĪ while ago I wrote up a method for switching between /etc/hosts files.
0 Comments
Leave a Reply. |