Computers, Laptops & Tablets > Apple 55 55 people found this article helpful Use Terminal to Speed Up Your Mac Increase performance by eliminating eye candy By Tom Nelson Tom Nelson Facebook Twitter Writer Tom Nelson is an engineer, programmer, network manager, and computer network and systems designer who has written for Other World Computing,and others. Tom is also president of Coyote Moon, Inc., a Macintosh and Windows consulting firm. lifewire's editorial guidelines Updated on September 11, 2020 Tweet Share Email Tweet Share Email In This Article Expand Jump to a Section Tricks to Enhance Performance Disable Window Animations Improve the Dock Speed Up Time Machine Backup Who wouldn't want to get as much speed and performance out of their computer as possible? Mac users can optimize their devices in a number of ways, including: Upgrading RAM Upgrading storage Installing faster processors Ensuring plenty of free space Not all of these options are applicable to every Mac, but even if you cannot upgrade your Mac's RAM, there are steps you can take to improve overall performance without having to spend money on updates. Of all the items listed above, the first thing you should do is ensure that you have an excess of free space on your Mac's startup drive. If you can't achieve a reasonable amount of free space by removing unneeded or unwanted apps, documents, and data, then you may want to consider moving your user folder to an external drive to free up space. boyarkinamarina/iStock Terminal Tricks to Enhance Performance One common way to improve performance is to reduce the amount of superficial eye candy included with macOS. One example is the use of animation to shrink an open window down to fit in the Dock. This type of animation doesn’t take a great deal of processing power when compared to, for example, applying a complex filter in Photoshop. But if your Mac is busy trying to render new images in your favorite image editing app while you're working in your favorite database app, then adding the resources needed to animate a window could be enough to slow your Mac down to a crawl. While taken individually, these Terminal tricks may not show drastic improvement in speed and performance, but in combination they do a great deal. The end effect is that your Mac will be able to complete tasks faster, with less load on the processor cores. We'll be using Terminal for all of these tricks, and while none of the commands on their own should cause any problems, it's always wise to make sure you have a current backup before proceeding. If you're ready, let's get started. The Terminal app can be found in /Applications/Utilities/. Disable Window Animations As mentioned, window animations require a certain amount of graphics and processing power, which delivers no real benefit other than a bit of eye candy. Here's how to turn window opening animations off: Any of these Terminal commands can be manually typed into the app or copied and pasted from this page. Enter the following command in the Terminal prompt: defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false Press enter or return on your keyboard. To restore the animations, enter the following command: defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool true Press enter or return on your keyboard. Another window animation occurs when you resize a window and when you select to Open or Save a file within an app. Here's how to disable them: Enter the following command in Terminal: defaults write NSGlobalDomain NSWindowResizeTime -float 0.001 Press enter or return on your keyboard. To restore the animation, enter the following: defaults write NSGlobalDomain NSWindowResizeTime -float 0.2 Press enter or return on your keyboard. You can turn off the Quick Look window animation with this command: defaults write -g QLPanelAnimationDuration -float 0 Press enter or return. Restore the Quick Look window animation by entering the following: defaults delete -g QLPanelAnimationDuration Press enter or return, and then restart your Mac. Dock Improvements If you like to hide your Dock, you've probably noticed that there's a delay between when you move your cursor to the Dock area and when the Dock appears. You can change that delay so that the Dock appears right away: Enter the following command in Terminal: defaults write com.apple.dock autohide-time-modifier -float 0 Press enter or return. Enter the following Terminal prompt: Killall Dock Press enter or return. To restore the delay, enter: defaults delete com.apple.dock autohide-time-modifier Press enter or return. Launching an app from the Dock presents an animation that can be turned off with the following command: defaults write com.apple.dock launchanim -bool false Press enter or return. To restore the animation, enter: defaults write com.apple.dock launchanim -bool true Press enter or return. Time Machine This tip is a one-time tweak to speed up the initial Time Machine backup. MacOS throttles Time Machine by assigning it a low CPU priority. This is actually pretty helpful since it prevents Time Machine from grabbing CPU resources and slowing down your Mac's overall performance. There's one exception, though. When you perform an initial Time Machine backup, the backup size can be so large that it will take a long time to complete, since its CPU priority is throttled. If you would like to get the initial Time Machine backup completed in a timelier manner, you can change the throttle setting by entering the following sysctl command in Terminal: sudo sysctl debug.lowpri_throttle_enabled=0 Enter your administrator password. Start your Time Machine backup. You can revert to the default throttled setting by either restarting your Mac or entering the following at the Terminal prompt: sudo sysctl debug.lowpri_throttle_enabled=1 Enter your administrator password. How to Save Terminal Commands on a Mac Was this page helpful? Thanks for letting us know! Get the Latest Tech News Delivered Every Day Subscribe Tell us why! Other Not enough details Hard to understand Submit