-2

I want to edit my etc/hosts file. In terminal/command line on a mac i have typed in sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit

Sometimes it asks for my password, I enter my password and nothing happened. Other times it doesn't even ask for a password and nothing happens. Why isn't this command working?

Ollie_W
  • 337
  • 1
  • 5
  • 13

1 Answers1

8

Try typing this instead.

sudo nano /etc/hosts 
DominicEU
  • 3,585
  • 2
  • 21
  • 32