Mac-terminal.com

Mac-Terminal.com

An introduction of the Terminal for Mac OS X

Sudo - how to use it in Mac OS X

Syntax: sudo <Other command>

Explanation: Sometimes you might not be able to perform a certain command or task from the Terminal. When that occurs, try adding "sudo" before the rest of the command you're trying to execute.
Sudo stands for superuser do and means that you want to execute the following command as a superuser or Administrator. When using sudo you might be asked to enter the system root password.

Example

sudo rm protected_file.zipTries to remove the file "protected_file.zip" with sudo.
sudo chmod 0775 protected_file.zipTries to change permissions of the file "protected_file.zip" with sudo.