how to edit private files on mac code example Example: edit hosts file mac terminal sudo nano /etc/hosts