This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions.
The wikiHow Tech Team also followed the article's instructions and verified that they work.
This article has been viewed 14,045 times.
This wikiHow teaches you how to clear the RAM in macOS without having to do a hard reset. Using the "purge" command can help speed up your sluggish Mac by removing unneeded cached data from its memory.
Steps
-
Click the Go menu. It’s in the menu bar at the top of the screen.Advertisement
-
Click Utilities. A list of app icons will appear.
-
Scroll down and double-click Terminal. It’s the black computer screen icon with a white prompt at its top-left corner.
-
Type sudo purge at the prompt. This is the command that will clear the RAM and disk caches.[1]
- This will not delete any of your personal data.
-
Press ⏎ Return. A password prompt will appear.
-
Type your password and press ⏎ Return. The RAM and disk caches are now cleared.Advertisement
Community Q&A
-
QuestionWhen I go to Terminal and do sudo purge, it doesn't let me type in my password to continue.Community AnswerJust type in your password. The computer will not show the letters you type. Press enter when you’re done. Make sure you are in an account with sudo permissions.
-
QuestionI choose to have no password - but sudo purge won't let me do anything without a password. Someone advise.Community AnswerYou have to have a password. If you want, store passwords in notes. Lock the note to keep it private.
-
QuestionHow do I change a Mac password?NuclearblowoutCommunity AnswerGo to Settings in Mac. Then, click Users and Groups. Click the lock icon and enter the admin username and password. There is a button that says change password. Click that and you'll be all set.
About this article
1. Open Terminal.
2. Type "sudo purge" at the prompt.
3. Press Return.
4. Enter your password.
5. Press Return.