terminal tricks
The Mac’s Terminal is at once scary and powerful. It’s like a whole other computer living underneath the pretty interface of macOS. Sometimes, it’s convoluted. Other times, it seems laser-focused, offering a much quicker way to get things done. Instead of clicking and dragging your way through multiple screens, you just type a line of text.

However, the Mac Terminal is pretty intimidating if you’re not used to it. Today we will learn five super-useful Terminal tricks that make getting around much easier.

You’ll see how it can integrate with the Finder, and how you can drag and drop files and folders into a text-based Terminal window.

Mac Terminal tricks and tips

These tricks are like learning to right-click the mouse — they’re the shorthand that makes Terminal much easier to use. Before long, you’re going to look like a badass hacker from a TV cop show.

First, open a Terminal window on your Mac

Terminal tricks: Customize the Terminal to look like 1980s DOS.

Terminal is a Mac app. You will find it inside the Applications > Utilities folder. Launch it, and it will probably open a window that looks like a regular TextEdit window, a white pane with black text. You can change the appearance in the app’s preferences.

I find black on white easier to read, but I also like to be able to spot the Terminal window amongst other open windows. So I go for green text on a black background. (You can choose from several preset profiles.)

The Terminal can do pretty much everything your Mac can do in normal use, and more. Usually, you’ll be working on a file, or a folder full of files, and running commands on those files. Most of the following tips show you how to work with files and folders more easily.

How to open a folder in the Mac Terminal

To open a folder, you just type cd (change directory), followed by the folder’s path. For instance, to open the Documents folder in your home directory, just type cd ~Documents and hit return. You are now “in” your Documents folder. However, you can’t see any of the files inside — yet.

To list all the files in the current folder, type ls (list files) and hit Return. All the files and folders will be listed. How can you tell the difference? The folders are listed first, and the files after. And the files are shown with their file suffix — interesting file.txt, for example.

But what if you don’t know the path? Or don’t care to type it? After all, you probably have the folder open in a Finder window already. This is the first trick. Just type cd (including the space), and then drag any folder from the Finder into the Terminal window. Its path will be pasted into Terminal, and you can just hit Return to open it.

Open current Terminal path in the Finder

Terminal tips: The Finder and the Terminal are like the Joker and Batman.

How about the other way around? You’re deep inside some directory on your Mac, and you want to open it in the Finder. This one is even easier. Just type open . (that’s open space period). Then hit Return, and the current folder will open in a Finder window.

Read more at cultofmac.com

Leave a Reply

Discover more from

Subscribe now to keep reading and get access to the full archive.

Continue reading