+4 votes
151 views
Open Terminal folder Mac | directory

in Mac by (552k points)
reopened | 151 views

1 Answer

+5 votes
Best answer

How to open a folder in macOS from the terminal

macOS gives us the opportunity to access folders and directories in different ways, the Finder being the most popular and common way to do it, just go to the Finder and click on the folders or directories to see their content or to add items. But there is another equally functional method, although not as popular among macOS users, and that is to use the terminal for it..

 

 

The terminal console in macOS not only allows you to execute commands and list orders, but from there we are able to open directories or folders if required. So this is a great method for console lovers.

 

Then we show you all the steps you must follow to know how to open a folder from the Mac terminal step by step. Let's see how we can access directories and folders in macOS from the Finder..

 

 

To stay up to date, remember to subscribe to our YouTube channel!   SUBSCRIBE

 

 

How to open a folder in macOS from the terminal

 

Step 1

We open the terminal from Spotlight and in the terminal we will access the desired folder with the syntax:
 open / Users / user / directory 

image

 

Step 2

When pressing Enter the directory or folder, in this case Documents, will open:

 

image

 

From the terminal we can make use of the following options:

  • To open the root directory, we execute open /
  • To go to the Start folder we execute open ~
  • To open the current working folder within the Finder we execute open ..

 

Step 3

In addition to this method, it is possible to use the keyboard shortcuts to open directories or folders, for this we open System Preferences. We select "Keyboard",

 

image

 

Step 4

Next we go to the "Quick functions" tab and in the "Services" section we validate that "New terminal in the folder" is active:

 

image

 

Step 5

For its use, we right click on a folder and select "New terminal in the folder" to open that folder in the terminal:

 

image

 

Step 6

As a result the terminal will be open in that folder:

 

image

 

This has been the process to open and manage folders and directories directly in the terminal on macOS.

 


by (3.5m points)

Related questions

+5 votes
1 answer
asked Oct 8, 2020 in Mac by backtothefuture (552k points) | 270 views
+5 votes
1 answer
asked Sep 20, 2019 in Mac by backtothefuture (552k points) | 356 views
+4 votes
1 answer
asked Jun 23, 2020 in Mac by backtothefuture (552k points) | 740 views
+3 votes
1 answer
asked Oct 20, 2022 in Mac by backtothefuture (552k points) | 82 views
+4 votes
1 answer
asked Jun 22, 2020 in Mac by backtothefuture (552k points) | 580 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users