Skip to content

Instantly share code, notes, and snippets.

@SethuSenthil
Created November 23, 2023 23:43
Show Gist options
  • Save SethuSenthil/36614afb6e9c95fa98114dea74372009 to your computer and use it in GitHub Desktop.
Save SethuSenthil/36614afb6e9c95fa98114dea74372009 to your computer and use it in GitHub Desktop.
Edit Hosts File on MacOS (Ventura and above)

Unlock File (Requried on Ventura and above)

sudo chflags nouchg /private/etc/hosts

Edit the file

sudo nano /etc/hosts or to use VS Code: sudo code /etc/hosts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment