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

Milan Stanojevic
by Milan Stanojevic
Windows & Software Expert
Milan has been enthusiastic about PCs ever since his childhood days, and this led him to take interest in all PC-related technologies. Before joining WindowsReport, he worked as a front-end web developer. 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.
  • 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
Does your Mac have a backup plan for emergency situations?
Having a clean system and good protection against all types of potential malicious programs is essential. Intego's Mac Premium Bundle X9 can help you in several situations:

  • Clean and optimize every single bit of space on your Mac
  • Keep your system safe with Virus Barrier
  • Create professional backups of your system and data
  • Keep your kids safe while online with Parental Control features

Intego's Mac Premium Bundle X9 has been downloaded by 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.

idee restoro
Still having issues with your Mac OS?
Fix them with this tool:
  1. Download and install now Washing Machine X9 from the official website
  2. Wait for an auto scan to start and spot the issues.
  3. Click Clean to start optimizing your Mac OS for a better experience.

This article covers:Topics: