How to Open a Folder in Mac OS X Terminal using Finder

Take a closer look at our quick procedures

by Milan Stanojevic
Milan Stanojevic
Milan Stanojevic
Windows & Software Expert
Milan has been enthusiastic about technology ever since his childhood days, and this led him to take interest in all PC-related technologies. He's a PC enthusiast and he... read more
Reviewed by Alex Serban
Alex Serban
Alex Serban
Windows Server & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • 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.
open folder in terminal

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.

You might also want to look at our guide on how to fix the ZSH permission denied error in the Mac Terminal.

Feel free to use the comments section below for any questions or suggestions you might have.

This article covers:Topics: