DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
Cupertino desk5 min

How to Speed Up a Mac Using 7 Terminal Commands (Safely)

These seven built-in Terminal commands help identify why a Mac is slow, from CPU-heavy processes and memory pressure to low storage and filesystem errors.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

There is no single Terminal command that makes every Mac faster. These seven built-in commands help identify CPU, memory, storage, update, cache, and filesystem problems so you can take one targeted action instead of running risky “cleaner” scripts.

Save your work first. None of the core commands requires sudo, and you should not delete system files or caches wholesale.

As an Amazon Associate I earn from qualifying purchases.

The seven commands

Purpose Command Changes anything?
Check uptime and load uptime No
Find CPU-heavy processes top -o cpu -n 10 No
Check memory pressure memory_pressure No
Check startup-volume space df -h / No
Find large user caches du -sh ~/Library/Caches/* 2>/dev/null | sort -h | tail -20 No
Check available updates softwareupdate --list No
Verify the startup volume diskutil verifyVolume / No; verification only

Before you start

  • Open Terminal from Applications → Utilities.
  • Use an administrator account where macOS requests authorization. Terminal shows no characters while you type a password.
  • Do not paste commands containing sudo, rm, rm -rf, or killall unless you understand their exact effect and have a current backup.
  • Commands can vary between macOS releases. Check local documentation with commands such as man top or man diskutil. Press q to leave a manual page.

1. Check whether a restart may be overdue

Run

uptime

Read the result

The output includes the current time, how long the Mac has been running, logged-in users, and one-, five-, and 15-minute load averages. A high load average is not automatically bad: interpret it alongside CPU count, memory pressure, disk activity, and what the Mac is doing.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

After startup, indexing, cloud synchronization, updates, or photo analysis can temporarily raise load. This command is a quick baseline, not a performance score.

#1 Best Overall
Apple 2026 MacBook Neo 13-inch Laptop with A18 Pro chip: Built for AI and Apple Intelligence, Liquid Retina Display, 8GB Unified Memory, 256GB SSD Storage, 1080p FaceTime HD Camera; Blush
  • AN AMAZING MAC AT A SURPRISING PRICE — With an incredibly portable and durable aluminum design, up to 16 hours of battery life,* and the A18 Pro chip, MacBook Neo is ready to go wherever school takes you.
  • FOUR STUNNING COLORS. ONE DURABLE DESIGN — Choose from four beautiful colors — Silver, Blush, Citrus, or Indigo — each with a color-coordinated keyboard. And MacBook Neo is made with a durable recycled aluminum enclosure that helps it reach 60 percent recycled content by weight — the most ever in any Apple product.*
  • FLY THROUGH EVERYDAY ASSIGNMENTS — Whether you’re cramming for finals, using Apple Intelligence* to summarize class notes, creating presentations, or even playing the latest Apple Arcade game,* MacBook Neo delivers the performance and AI capabilities you need to get things done.
  • UP TO 16 HOURS OF BATTERY LIFE — MacBook Neo delivers all day battery life, so you can power through from early morning classes to late night study sessions without worrying about plugging in.
  • A VIBRANT 13-INCH DISPLAY* — The gorgeous Liquid Retina display on MacBook Neo supports 1 billion colors, so photos and videos pop and text is crisp for easy reading.

2. Find a process using too much CPU

Run

top -o cpu -n 10

top continuously displays processes sorted by CPU use. Watch several refreshes and look for a process that stays high while the Mac is otherwise idle. It may be a browser tab, backup tool, cloud service, indexer, update, or demanding application.

Press Control-C to stop the display. Do not terminate an unfamiliar system process merely because it is near the top. For a graphical view, run open -a "Activity Monitor", then sort the CPU column. Apple explains Activity Monitor’s process and CPU views at its process guide and its CPU guide.

3. Check memory pressure rather than “free RAM”

Run

memory_pressure

Pay attention to the reported pressure state and swap-related information. Low “free” memory alone is not a diagnosis because macOS uses available memory for caching.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Apple 2026 MacBook Air 13-inch Laptop with M5 chip: Built for AI, 13.6-inch Liquid Retina Display, 16GB Unified Memory, 512GB SSD, 12MP Center Stage Camera, Touch ID, Wi-Fi 7; Midnight
  • BUILT FOR COLLEGE. AND BEYOND — MacBook Air with the M5 chip packs blazing speed and powerful AI capabilities into an incredibly portable design. And with up to 18 hours of battery life,* this thin and light powerhouse is ready to take on almost any major, just about anywhere.
  • TEAR THROUGH TOUGH ASSIGNMENTS — With its faster CPU and unified memory, the M5 chip delivers even more performance and fluidity across apps, making multitasking and creative workflows smooth and responsive. A powerful Neural Engine and next-generation GPU with Neural Accelerators give you a powerful platform for AI.
  • MAKE QUICK WORK OF YOUR TO-DO LIST — Apple Intelligence helps you write, express yourself, and get things done effortlessly — whether it’s for school or everyday life. With groundbreaking privacy protections, it gives you peace of mind that no one else can access your data — not even Apple.*
  • UP TO 18 HOURS OF BATTERY LIFE — MacBook Air delivers incredible battery life with amazing performance, so you can power through a full day of classes without worrying about plugging in.
  • A BRILLIANT 13.6-INCH DISPLAY* — The gorgeous Liquid Retina display on MacBook Air supports 1 billion colors, making photos and videos pop with rich contrast and sharp detail, and text appears supercrisp. So everything — from class presentations to movies to games — looks truly stunning.

Open Activity Monitor with open -a "Activity Monitor" and select Memory. Check the Memory Pressure graph, Memory Used, Swap Used, Cached Files, and Compressed Memory. Apple’s memory guidance is available at this Activity Monitor guide.

If pressure is high, close the memory-heavy app or browser tabs and see whether the problem returns. A purge utility is not a substitute for addressing the process causing pressure.

4. Check space on the startup volume

Run

df -h /

The command reports total, used, available, and percentage-used space for the startup filesystem. A nearly full volume can cause slow file operations, installation failures, and instability. There is no universal percentage that every Mac must keep free; investigate when the volume is nearly full or macOS reports low storage.

Rank #3
Apple 2026 MacBook Neo 13-inch Laptop with A18 Pro chip: Built for AI and Apple Intelligence, Liquid Retina Display, 8GB Unified Memory, 256GB SSD Storage, 1080p FaceTime HD Camera; Indigo
  • AN AMAZING MAC AT A SURPRISING PRICE — With an incredibly portable and durable aluminum design, up to 16 hours of battery life,* and the A18 Pro chip, MacBook Neo is ready to go wherever school takes you.
  • FOUR STUNNING COLORS. ONE DURABLE DESIGN — Choose from four beautiful colors — Silver, Blush, Citrus, or Indigo — each with a color-coordinated keyboard. And MacBook Neo is made with a durable recycled aluminum enclosure that helps it reach 60 percent recycled content by weight — the most ever in any Apple product.*
  • FLY THROUGH EVERYDAY ASSIGNMENTS — Whether you’re cramming for finals, using Apple Intelligence* to summarize class notes, creating presentations, or even playing the latest Apple Arcade game,* MacBook Neo delivers the performance and AI capabilities you need to get things done.
  • UP TO 16 HOURS OF BATTERY LIFE — MacBook Neo delivers all day battery life, so you can power through from early morning classes to late night study sessions without worrying about plugging in.
  • A VIBRANT 13-INCH DISPLAY* — The gorgeous Liquid Retina display on MacBook Neo supports 1 billion colors, so photos and videos pop and text is crisp for easy reading.

On macOS Ventura 13 and later, open Apple menu → System Settings → General → Storage. Remove identifiable Downloads, old installers, large media, unused apps, old device backups, virtual machines, or project archives. Apple’s storage steps are at Apple Support. Advanced users can inspect APFS layout with diskutil apfs list, but should not alter containers casually.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

5. Locate large user caches without deleting them

Run

du -sh ~/Library/Caches/* 2>/dev/null | sort -h | tail -20
  • du -sh estimates each item’s size.
  • 2>/dev/null hides permission-error messages.
  • sort -h sorts human-readable sizes.
  • tail -20 displays the largest entries.

This only measures caches. It does not speed up the Mac. Deleting a specific corrupted or oversized cache can occasionally help, but broad deletion forces apps to rebuild data, may remove useful offline content, and can cause unexpected behavior. Use Storage settings first and delete only files you recognize. macOS can clear certain caches in Safe Mode and recreate them; see Apple’s storage guidance.

6. Check for macOS updates

Run

softwareupdate --list

This checks Apple’s software-update service; it does not install anything. If an update is listed, the installation form is:

Rank #4
Apple 2026 MacBook Neo 13-inch Laptop with A18 Pro chip: Built for AI and Apple Intelligence, Liquid Retina Display, 8GB Unified Memory, 256GB SSD Storage, 1080p FaceTime HD Camera; Citrus
  • AN AMAZING MAC AT A SURPRISING PRICE — With an incredibly portable and durable aluminum design, up to 16 hours of battery life,* and the A18 Pro chip, MacBook Neo is ready to go wherever school takes you.
  • FOUR STUNNING COLORS. ONE DURABLE DESIGN — Choose from four beautiful colors — Silver, Blush, Citrus, or Indigo — each with a color-coordinated keyboard. And MacBook Neo is made with a durable recycled aluminum enclosure that helps it reach 60 percent recycled content by weight — the most ever in any Apple product.*
  • FLY THROUGH EVERYDAY ASSIGNMENTS — Whether you’re cramming for finals, using Apple Intelligence* to summarize class notes, creating presentations, or even playing the latest Apple Arcade game,* MacBook Neo delivers the performance and AI capabilities you need to get things done.
  • UP TO 16 HOURS OF BATTERY LIFE — MacBook Neo delivers all day battery life, so you can power through from early morning classes to late night study sessions without worrying about plugging in.
  • A VIBRANT 13-INCH DISPLAY* — The gorgeous Liquid Retina display on MacBook Neo supports 1 billion colors, so photos and videos pop and text is crisp for easy reading.
softwareupdate --install --all

Save work and keep a backup. Installation may require administrator authentication and a restart. Managed Macs may restrict it, and major upgrades are not installed in every situation. Updates can fix bugs and compatibility problems, but they are not guaranteed speed boosts.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

7. Verify the startup volume

Run

diskutil verifyVolume /

This checks the startup volume’s filesystem; it does not repair it. A successful result says the volume appears OK. Errors, or a message that the mounted volume cannot be checked, require a different step.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Back up important data.
  2. Open Disk Utility and choose View → Show All Devices.
  3. Select the relevant volume or container and run First Aid.
  4. If the startup volume cannot be repaired while booted normally, follow Apple’s Recovery-mode procedure rather than using destructive commands.

Apple includes disk verification and repair in its slow-Mac guidance: If your Mac runs slowly.

Best Value
Sale
Apple 2026 MacBook Pro Laptop with Apple M5 Pro chip with 18-core CPU and 20-core GPU: Built for AI, 16.2-inch Liquid Retina XDR Display, 24GB Unified Memory, 1TB SSD, Wi-Fi 7; Space Black
  • FAST RUNS IN THE FAMILY — The 16-inch MacBook Pro with the M5 Pro or M5 Max chip brings next-generation speed and powerful on-device AI to personal, professional, and creative tasks. With all-day battery life, double the starting storage,* and a breathtaking Liquid Retina XDR display, it’s pro in every way.*
  • BUCKLE UP — Along with a next-generation CPU, faster unified memory, and up to 2x faster SSD storage,* M5 Pro and M5 Max feature a more powerful GPU with a Neural Accelerator built into each core, delivering faster AI performance and on-device training capabilities. So you can blaze through demanding workloads at mind-bending speeds.
  • BUILT FOR AI — Apple silicon, and every major component that powers it, is designed to run demanding on-device AI workloads like LLM inference and training. And Apple Intelligence helps you write, express yourself, and get things done effortlessly with groundbreaking privacy protections at every step.*
  • ALL-DAY BATTERY LIFE — MacBook Pro delivers the same exceptional performance whether it’s running on battery or plugged in.*
  • MACOS RUNS APPS FAST — All your go-to apps run lightning fast in macOS, including built-in apps like FaceTime and Messages. Plus, built-in virus protection and free software updates help keep your Mac running smoothly and securely.

Choose the command from the symptom

Symptom Start with Likely next action
Heat, fan noise, battery drain top -o cpu -n 10 Identify and update, close, or troubleshoot the responsible app or service.
Beach balls with many apps open memory_pressure Use Activity Monitor’s Memory tab and close the offending workload.
Slow file operations or low-storage warnings df -h / Use Storage settings to remove known, unnecessary files.
Only one app is slow top -o cpu -n 10 Update, reset, or consult that app’s support documentation.
Repeated disk errors diskutil verifyVolume / Back up and run Disk Utility First Aid.
Slowness immediately after login uptime plus Activity Monitor Review login items, cloud sync, backups, indexing, and recently installed software.

Why common “speed-up” commands are poor advice

  • purge flushes caches; that is not a general performance improvement and can make relaunches slower.
  • sudo periodic daily weekly monthly is a legacy maintenance suggestion, not a reliable universal speed boost on modern macOS.
  • sudo rm -rf ~/Library/Caches/* is an unnecessarily broad deletion command and should not be used as routine maintenance.

Do not treat a large System Data category as junk. Apple says it can include logs, caches, virtual-memory files, temporary files, fonts, plug-ins, and app-support data managed partly by macOS. See Apple’s System Data explanation.

When Terminal cannot fix the Mac

These commands diagnose common causes; they cannot repair failing hardware, insufficient memory for a demanding workflow, thermal faults, an aging drive, unsupported software, or an application bug. If the Mac remains slow after a normal restart and targeted cleanup:

  • Test in Safe Mode.
  • Review login items and recently installed software.
  • Observe Activity Monitor for several minutes.
  • Run Apple Diagnostics.
  • Contact Apple or an authorized service provider if disk or hardware failure is suspected.

Apple’s general troubleshooting flow centers on Storage, Activity Monitor, and Disk Utility rather than paid cleaners: Apple’s slow-Mac guide.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The Bottom Line

Run the command that matches the symptom, read its result, and take one specific corrective action. Terminal is most useful here as a diagnostic toolkit—not a license to flush caches or delete system files.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.