Elena' s AI Blog

MAC OS Speed Up

07 Aug 2022 (updated: 01 Jun 2026) / 4 minutes to read

Elena Daehnhardt


Midjourney AI-generated art


TL;DR:
  • Tips for speeding up macOS without hardware upgrades: optimizing system performance, reducing latency, and improving computer speed through software settings and maintenance.
A Trees Admirer Hi everyone! I hope that you enjoy this summer.

I want to tell something very personal about myself (some of my readers complain that this blog is too technical). I want to share my secret with you, don't tell anyone ;) I am a secret admirer of trees and nature! I think trees speak with the Universe and can tell us about everything should we listen patiently!

Enough secrets (they might be misleading!). Let's get technical!

How to Speed Up macOS Without Hardware Upgrades

After a while, my macOS computer started to work slower. I have searched for possible solutions to run my computer faster without much latency. We can upgrade our computer storage and install a more powerful processor to speed up macOS, but hardware upgrades are costly and take time. This post instead focuses on three software-only maintenance steps that reclaim disk space and free memory:

  1. Clear macOS caches in ~/Library/Caches
  2. Empty the Trash
  3. Free RAM with the sudo purge command

Clearing macOS Caches in ~/Library/Caches

macOS caches are temporary files that apps and the system store to speed up repeat operations; over time they can grow large and consume disk space. macOS user caches are stored in the ~/Library/Caches folder. We can open that folder in Finder with Shift+cmd+G, select all subfolders with cmd+A, and move all of them into the Trash. If you still need cached folders, you can deselect them with cmd+Mouse click.

Emptying the Trash to Free Disk Space

To empty your Trash bin, right-click on it and select “Empty Trash.”

Freeing RAM with the sudo purge Command

sudo purge is a built-in macOS command that forces the operating system to flush inactive memory pages and disk caches back to a clean state, freeing RAM (Random Access Memory) without a reboot. To free your computer RAM, you can use the MacKeeper app, or use the Terminal utility to purge your memory. The Terminal application is in the Applications/Utilities folder. In the Terminal window, type sudo purge, which cleans up your computer RAM and caches. You will need your administrative password to run the purge command.

Bash Script to Automate macOS Cleanup

This section is a command-line-friendly version of the steps described above. To automate the cleanup process, I have written a small bash script, which you can modify and adapt to your needs. Be cautious to keep the files you need: rm -rf * permanently deletes the contents of the cache folder with no confirmation and no Trash recovery.

# Go to the ~/Library/Caches folder
cd ~/Library/Caches
# Remove everything there
rm -rf *
# Empty the Trash 
rm -rf ~/.Trash/*
# RAM and caches clean up
sudo purge

Conclusion: Speeding Up macOS via Software Maintenance

These three software maintenance steps — clearing ~/Library/Caches, emptying the Trash, and running sudo purge — speed up a slow Mac without any paid hardware upgrade. Software-only macOS maintenance is a no-cost alternative to storage and processor upgrades that reclaims disk space and frees inactive RAM. You can go into more detail by consulting the following references. Let me know if you have new blog topic ideas or suggestions!

Did you like this post? Please let me know if you have any comments or suggestions.

Posts about development tools and Python coding

References

1. The MacKeeper app

2. Use Terminal to Speed Up Your Mac

desktop bg dark

About Elena

Elena, a PhD in Computer Science, simplifies AI concepts and helps you use machine learning.

Citation
Elena Daehnhardt. (2022) 'MAC OS Speed Up', daehnhardt.com, 07 August 2022. Available at: https://daehnhardt.com/blog/2022/08/07/edaehn-mac_os_speed_up/
All Posts