Bring the Command Line into the Real World

So far in this book I’ve largely ignored Mac OS X’s graphical interface, treating the command-line environment as a separate world. In fact, because the command-line interface and the graphical interface share the same set of files and many of the same programs, they can interact in numerous ways.

In this chapter, I discuss how your shell and the Finder can share information and complement each others’ strengths—giving you the best of both worlds.

Get the Path of a File or Folder

Suppose you want to perform some command from the command line on a file or folder you can see in the Finder, but you don’t know the exact path of that folder—or even if you do, you don’t want to type the whole thing. You’re ...

Get Take Control of the Mac Command Line with Terminal, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.