Speed Up Terminal App in Mac OS X with These 4 Performance Tricks

Apr 30, 2014 - 7 Comments

Speed up the Terminal with these tricks

Many advanced Mac users spend a lot of time at the command line of OS X, accessed through the Terminal app. While generally the Terminal is fast and efficient, sometimes it can slow down over time, or suffer from some performance degradation due to user preference settings. If you feel that Terminal app is being sluggish and could use a speed boost in OS X, use these handful of tricks to speed up the performance of Terminal app and your command line experience.

1: Open New Window & Tabs Faster By Clearing Log Files

If Terminal has gotten progressively slower over time, dumping the Apple System Logs can dramatically speed up the launch of new Terminal windows and tabs, sometimes from seconds down to instantaneous. You can do this two ways, either with the rm command or by moving the files to your Trash, do what works with your comfort level:

This moves all *.asl log files into the users Trash can, which can then be emptied manually:
sudo mv /private/var/log/asl/*.asl ~/.Trash

Meanwhile, the alternative is to use the rm command to delete the files directly:
sudo rm -i /private/var/log/asl/*.asl

The -i flag serves as a protection layer by confirming the file deletion, this is helpful for those new to the terminal and to help prevent errors. If you’re comfortable with the command line and nuking the full directory contents, skip the -i and use -rf instead.

2: Get a Simpler Terminal Theme & Profile for Less Resource Use

Transparent liquid blurred out crazo-backgrounds with antialiased text, looks amazingly great! Right? Yea, Silver Aerogel sure looks cool, but having 20 of these active windows open at once with a bunch of other stuff going on can really slow down the Terminal app needlessly. Use a basic theme instead.

Slow terminal due to fancy effects

Yes that means ditching the transparencies and fancy blurring backgrounds offered in themes like MagicGelShell or through your own custom creations, and going with a simple colored text on a basic colored background theme instead like “Basic”, “Peppermint”, or “Pro”. Each of these windows uses less RAM and requires less CPU to render the fancy eye candy. The best way to approach this for performance purposes is to set the new startup default as follows:

  • Go to Terminal Preferences > Startup
  • Pull down the menu for “On startup open New window with settings:” and pick a basic theme

On startup open a basic terminal

Yes, you can set this per-Terminal window if you want using the Inspector tool, but it’s really best to set the default.

Easy, faster terminal! This is particularly true for older Macs and Macs with limited resources. If you’ve got a maxed out 2014 Mac Pro, well, you probably don’t need to worry so much about this.

Faster Terminal with a basic theme

3: Boost Launch Speed by Specifying a Launch Shell

Another known trick for speeding up the launch of Terminal app or the opening of new terminal windows ro tabs is to specify a shell, rather than rely on /usr/bin/login (which reads the default login shell setting). This is done through the Terminal app preferences:

  1. Go to the “Terminal” window and open “Preferences” and go to the “Startup” tab
  2. Find “Shells open with:” and choose “Command (complete path)” and specify your preferred shell

Specify a shell in the Terminal app at launch

The most common shells are /bin/bash and /bin/zsh but if you’re not sure which you’re currently using you can always check with the ‘echo $SHELL’ command.

4: Consider iTerm2 for Enhanced Performance

Not thrilled with the default Terminal app bundled with OS X and it’s occasional performance hiccups? Consider using iTerm2, an alternative terminal app that is built for performance and features that aren’t available through Apple’s default Mac offering of Terminal.app

iTerm2 for performance

Some people absolutely swear by iTerm2 for performance reasons alone, and it’s a free lightweight download. Check it out yourself to see if it works for you. Whatever you go with, enjoy your new, speedier command line experience!


Related articles:

Posted by: Paul Horowitz in Command Line, Mac OS, Tips & Tricks


» Comments RSS Feed

  1. Adam says:

    Removing the logs definitely helps. +1 for iTerm.
    My daughter had to laugh at the picture above, thought it was a guy farting.

  2. Elad Nava says:

    I discovered that changing the shell to /bin/zsh really made the difference — especially on El Capitan. The terminal’s launch time has been decreased from ~1300ms to ~50ms, which is amazing.

  3. William Scott says:

    I’m a big fan of zsh and iTerm2. Both have been significant improvements (although bash and Apple’s Terminal have both narrowed the gap in the last few years).

  4. vdiv says:

    I am old school, I use xterm under XQuartz.

  5. Michael Spurlock says:

    iTerm2 is hands-down the best terminal available for the Mac (at least for free as I have not paid for any of the expensive paid options out there). The ability to split the terminal and send commands to all of the panes at once is worth switching for, much less all of the other features it offers like tmux integration and being able to keep your beautiful transparent windows if you like without the major performance hit.

  6. knut says:

    I can recommend the fish shell – fishshell.com
    ch-check it out. ;)

Leave a Reply


Shop on Amazon.com and help support OSXDaily!

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Tips & Tricks


iPhone / iPad



Shop on Amazon to help support this site