I'm a newbie to terminal and I am trying to add lines to block a few websites, I successfully used the sudo nano command for the host file but I have no idea how to "save" my modified (added) lines to the file so that it is activated. Help?? I currently running Yosemite.
MacBook Pro (15-inch 2.4/2.2 GHz), OS X Yosemite (10.10)