How to open a folder in Mac OS X Terminal using Finder

Milan Stanojevic
by Milan Stanojevic
Deputy Editor
Affiliate Disclosure
Share this article:

  • If you’re an advanced macOS user, you are probably familiar with the Terminal.
  • Opening directories is a Terminal skill that everyone should know, and in this article, we’ll show you how to open a folder in Terminal.
  • To learn more about macOS, be sure to check our dedicated Mac OS article.
  • If you’re looking for more guides like this one, be sure to check our Mac Hub.
open folder in terminal
To fix various Mac problems we recommend Intego Security tool: Many errors and issues are caused by security threats. Intego Security will quarantine, repair or delete these dangerous files. Download it now for a safer and faster Mac OS, in just three easy steps:
  1. Download Intego Security rated Excellent on TrustPilot.com
  2. Click Scan to find Mac OS security issues and vulnerabilities.
  3. Click Fix now to get rid of all possible infections (exclusive discount for our readers).
  • Intego Security has been downloaded by 0 readers this month.

The Terminal is a big part of macOS, and this is why it’s important that you know at least the command line basics.

Working with Terminal isn’t that hard, and speaking of which, in this article, we’ll show to you how to open a folder in Terminal with ease.

How do I open a folder in Terminal?

1. Move the folder to the Terminal window

  1. Go to Applications > Utilities.
  2. Start the Terminal.
    terminal open open folder in terminal
  3. Type the cd command, but don’t run it.
  4. Open Finder.
  5. In Finder, locate the directory that you want to open, but don’t open it.
  6. Drag the directory to the Terminal window and drop it there.
  7. Now press Enter and you’ll access the folder in Terminal.

This method works because instead of typing the address of the folder you want to navigate to, you just drop the directory from the Finder and the folder path is automatically added to the command line.


2. Enable New Terminal at Folder option

  1. Click the Apple menu and choose System Preferences.
  2. Go to the Keyboard section.
  3. Head over to the Shortcuts tab.
  4. In the left pane, select Services. In the right pane, check New Terminal at Folder.
    shortcuts open folder in terminal
  5. Save changes.

To open a folder in Terminal, you just need to do the following:

  1. In Finder, locate the directory that you want to open and right-click it.
  2. Select Services > New Terminal at Folder.

This method is far more convenient because it allows you to open any folder in Terminal from Finder with just two clicks.

Many Mac users use the Terminal for various tasks, mostly because it’s more convenient and faster, but opening folders can be a bit tedious for some users.

If you’re one of those users, be sure to try drag and drop method or enable New Terminal at Folder option and you’ll be able to open directories in Terminal like a pro.