Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to cleanly remove MAMP Pro from my Mac and I'm following the steps outlined in the SO article

I have been able to perform everything except one piece -- I can't remove the hosts.mamp.bak file because I get a Permission denied error.

I'm trying to remove it from the Terminal app.

Do I need to login to the Terminal app some special way?

Thanks all!

share|improve this question
up vote 2 down vote accepted


sudo rm /etc/hosts.mamp.bak

and then type your password when prompted.

For more on sudo, see here.

share|improve this answer
Okay, so sudo causes it to ask for elevated permissions? – Mike Perrenoud Dec 2 '12 at 1:25
Yes. Sudo causes the given command to run with root privileges. – peelman Dec 2 '12 at 1:28
You are awesome, thanks! – Mike Perrenoud Dec 2 '12 at 1:28
we all started somewhere. Good luck. And pay special attention when using Sudo. As the old prompt says, with great power comes great responsibility. You can truly #&$% up your system in a hurry, so always double check commands, and always maintain backups. – peelman Dec 2 '12 at 1:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .