Note: This article was originally published in 2011. Some steps, commands, or software versions may have changed. Check the current Mac OS documentation for the latest information.

Sometimes you need to run certain commands on the terminal with elevated credentials otherwise you won’t be able to make modifications to the operating system, etc. In order to run such a command you need to use ‘sudo’ to elevate your current session. For example, you can run “sudo -s” and that will ask for your user credentials. Once you provide them you’ll be running in an elevated session so be careful of what you do.

Summary

You’ve successfully learned run a command with elevated admin credentials on a mac. If you run into any issues, double-check the prerequisites and ensure your Mac OS environment is properly configured.