Jump from Terminal to Finder and back again

Alan Shaw
InstructorAlan Shaw
Share this video with your friends

Social Share Links

Send Tweet
Published 5 years ago
Updated 4 years ago

Smooth your workflow by opening Finder from Terminal and vice versa at a specific folder.

Instructor: [00:00] To open finder from a terminal, we can simply say open and give it a directory, such as doc. Open is like double clicking. It opens its argument in the default app for its file type as specified in launch services. The default app for a folder is finder.

[00:18] What about opening a new terminal from the finder? If you haven't done it already, go to the finder menu, services, services preferences, and scroll down until you find new terminal at folder. Enable it.

[00:40] Preferably give it a keyboard shortcut. I have chosen command nine, but you can pick anything that isn't already in use.

[00:52] If I click on a folder and hit my shortcut, it opens a new terminal window at that folder. By the way, as I said, if I say open a file, it will open it in the default app for that file, which in this case is preview.

[01:16] If I give it a -a option to open, and specify an app just by name without its path name, it will open the arguments in that app. Furthermore, if I say open and -a and the name of an app, without passing it an argument, it will open the app.

egghead
egghead
~ a minute ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today