I'm trying to append a line to the hosts file on a mac. The command I'm using is:
sudo echo "192.168.99.100 test" >> /private/etc/hosts
This method does work on windows & linux but on Mac I do not have the permissions to run this even when running it in sudo
mode.
Can anybody tell me what I'm doing wrong and how I can fix this?
StefanJanssen