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

  1. It’s in the menu bar at the top of the screen.
    Advertisement
  2. A list of app icons will appear.
  3. It’s the black computer screen icon with a white prompt at its top-left corner.
  4. This is the command that will clear the RAM and disk caches. [1]
    • This will not delete any of your personal data.
  5. A password prompt will appear.
  6. The RAM and disk caches are now cleared.
    Advertisement

Community Q&A

Search
Add New Question
  • Question
    It won't let me type in my password, so I hit enter and it says that my profile is not a part of the sudoers file. What do I do?
    Community Answer
    Sudo is the top administrative level on a Linux-based system such as a Mac. Typing in your password should not be running sudo. The sudoers file is a record of which users are allowed to run sudo, and all administrators should be on this list. I would recommend contacting Apple support, as this could be evidence of malware trying to gain administrative privileges.
  • Question
    I typed in my password 3 times incorrectly, and it won't let me do anything. What should I do?
    hope
    Community Answer
    Shut it down and do it again, or restart the whole thing.
  • Question
    When I go to Terminal and do a sudo purge, it doesn't let me type in my password to continue. What can I do?
    Nuclearblowout
    Community Answer
    Make sure you are in the Admin user. The terminal for older Macs may not let you use the terminal in an account besides the Admin one.
See more answers
Ask a Question

      Advertisement

      About this article

      Article Summary X

      1. Open Terminal .
      2. Type "sudo purge" at the prompt.
      3. Press Return .
      4. Enter your password.
      5. Press Return .

      Did this summary help you?
      Thanks to all authors for creating a page that has been read 7,837 times.

      Is this article up to date?

      Advertisement