Quickly execute new Terminal command from the Dock

Nov 10, 2009 - 4 Comments


If you have the Terminal application stored in your Dock on Mac OS X, you can quickly execute any new command by right-clicking (or control clicking) on the Dock icon and navigating up to “New Command” in the popup menu.

new command from dock

This will prompt you for a command to run, which then launches into a terminal window specifically for that command. This is particularly nice for monitoring and analysis commands, like top, htop, dtrace, wireshark, etc.

Note that this will only execute the command you specified and will not leave you with a command line prompt afterwards by default, though you can check the box to run in a shell if you want to.

If you’re looking to continue to use the Terminal, just select ‘New Window’ instead.

Note that you must have the Terminal app already running to get these menu items available, thank you Michael for pointing this out!


Related articles:

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


» Comments RSS Feed

  1. […] on the Terminals Dock icon has several other features, including the ability to execute new commands directly from the Dock […]

  2. Tony says:

    I tried this; but when I re-enter Safari, the tooltips are stil there AND the command has deleted itself.

    How do I get it to execute – and stay executed?

  3. Chin says:

    Thanks you guy. This is really helpful to me.

  4. Michael says:

    This seems to work only if terminal app is already running. As soon as you quit the app those menu entries aren’t there anymore…

    At least that’s the way the terminal app behaves on my MacBook running a german version of 10.6.2


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