Cocktail is a general purpose utility for OS X that lets you clean, repair and optimize your Mac. It is a powerful digital toolset that helps hundreds of thousands of Mac users around the world get the most out of their computers every day.

Get Cocktail here

Reset forgotten Mac password

In the old days you could reset a login password via a Mac's OS X installer disc. But with no such discs, what to do?

To reset a login password in OS X Mountain Lion or later, restart the Mac and hold down Command-R to boot into the Recovery HD partition. From the Utilities menu, choose Terminal to open it. In Terminal type:

resetpassword

and press Return.

In macOS Sierra and macOS High Sierra, an Reset Password assistant will launch. Choose the user account or admin account you want to reset the password for. Enter a new password, confirm the new password, set (if you like) a password hint and then click on "Next" to set the new password for the account in question. Choose to "Restart" the Mac and when the Mac boots up, use the newly reset password to login to the computer.

In OS X Mountain Lion, OS X Mavericks, OS X Yosemite and OS X El Capitan, a Reset Password window will appear that will list all the bootable volumes attached to your Mac. Select the volume that contains the account you want to reset and choose the user name that needs its password reset. Enter and verify a new passwords in the appropriate fields and, if you like, enter a password hint. Click Save and the new password is applied to the account.

 

 

Terminal tricks

Here are two less-known tricks for those who use the Terminal a lot.

Ordinarily Terminal doesn’t obey the usual Option (Alt)+Delete keystroke that deletes a word behind the cursor in other apps. To make Terminal do so, hit Escape, then hit Delete. You will need to do this for each word you want to delete - Escape, then Delete; Escape, then Delete; etc.

If you’re editing a file in nano, emacs or vim, you can hold down Option (Alt) then click anywhere in the file to move the cursor there. It works at the command line too - you can jump to anywhere in the line you’re currently typing by holding down Option (Alt) and clicking there.