Terminal

How to fix a frozen MacBook Pro Touch Bar without rebooting

By

How to fix a frozen MacBook Pro Touch Bar
Restart your Touch Bar in an instant.
Image: Killian Bell/Cult of Mac

Whatever your opinion may be on the MacBook Pro’s Touch Bar, there’s no denying it comes in handy from time to time. Except when it freezes — which can be a common occurrence — and then it’s no use at all.

You might reboot your MacBook Pro to get its Touch Bar working again when this happens. But there is a quicker, much less disruptive fix. Here’s how to restart your Touch Bar without rebooting your Mac.

ViDL is a great free YouTube and video downloader for Mac

By

movie theater seats vidl
Download almost any video with ViDL.
Photo: Denise Jans/Unsplash

ViDL is a YouTube download app for Mac. It comes from Ole Moritz, developer of the amazing Pythonista and Editorial iOS apps. ViDL is a simple wrapper for the youtube-dl command-line tool, so if you already use that, you don’t need this. But the app is far easier to use than a command-line tools. Plus, it offers a built-in browser, in case you need to log in to a site to get access to the target videos. There’s even a ViDL Safari extension.

How to force Safari to open tabs the way it should

By

paper notebook with tabs
Tabs, just like those that Safari now messes up.
Photo: Charlie Sorrel/Cult of Mac

At some point, fairly recently, Safari started opening new tabs to the right of the currently open tab, instead of opening them at the end of the tab bar, as nature intended. This means that you have to search for the newly opened tab, instead of just knowing exactly where it is. I can see the point of opening tabs next to the current one, but I don’t like it.

Happily, there’s a way to revert Safari’s behavior to the good old way — the way my grandmother, and her grandmother before her, dealt with their tabs. It’s a simple option inside Safari’s debug menu. Wait? Debug menu?

How to resurrect your Mac’s startup chime

By

startup chime
Chimes and bongs: not just for hippies.
Photo: Arturo Rey/Unsplash

When you start up a Mac, it goes “bong,” and that’s the way the world should be. Unless, that is, you bought a Mac in 2016 or later, when Apple removed the Mac startup chime. These days, a Mac starts up silently, with only a whisper of fan noise (or the din of a whirring, clicking hard drive on an iMac) to let you know something is happening.

But what if you miss the good old Mac startup chime? Or — if you’re new to Macs — you just fancy a bit of retro charm? Today we’ll see how to bring back the bong.

Unmount noisy hard drives to stop them driving you crazy

By

A hard drive, fully
A hard drive, fully "unmounted."
Photo: Vincent Botta/Unsplash

If the main disk in your Mac is a spinning hard drive, you should probably upgrade to a solid state drive. Swapping in an SSD is the cheapest way to make your old computer feel like a brand-new Mac. But for backups, and for lesser-used internal storage in a Mac Pro or iMac, a hard drive still gives you the best value. You will pay far less per megabyte of storage.

The problem is that hard drives are noisy as well as slow. If you’re used to enjoying the silence of an SSD-based computer environment, then those whirrs, whines clicks and pops will drive you nuts. Which is why you should unmount your noisy hard drives. That way they’re still available to the apps that need them, but otherwise they’re sleeping.

Secure-erasing your Mac’s disks is no longer secure, Apple says

By

secure erase
Encrypting your disk is way safer than trying to 'secure' erase it.
Photo: Charlie Sorrel/Cult of Mac

In the olden days, when you wanted to replace your hard drive with a bigger one, you’d run a “secure erase” on it to completely remove any personal data. This would write zeros to the entire disk, overwriting anything already there.

But now, thanks to advances in storage tech, this no longer does the trick. (Not that you can change your own Mac SSDs now anyway.) The new secure-erase, says Apple, is to just encrypt your disk.

Check out these secret (and super-useful) settings for your Mac

By

JPG screenshot location
Dust off your Terminal to use these great hacks.
Photo: Charlie Sorrel/Cult of Mac

By using commands in your Mac’s built-in Terminal app, you can quickly change settings you probably didn’t even know existed.

Some of these Mac settings are just shortcuts — you can enable them in the usual way, using the mouse. But Terminal makes things simple. Instead of opening the System Preferences app, then finding (or remembering) a setting you want to change, and then searching further until you actually find the right checkbox, you can just type (or paste) a command, then  hit return.

Most of these are secret settings, though. They are impossible to change without Terminal. Let’s check them out.

5 super-useful Terminal tricks for total noobs

By

terminal tricks
Where the hell are you supposed to begin?
Photo: Cult of Mac

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.

Pro tip: Automatically save your Mac screenshots in iCloud

By

JPG screenshot location
Screenshots can be saved anywhere, including iCloud.
Photo: Charlie Sorrel/Cult of Mac

Pro Tip Cult of Mac bugOn your Mac, screenshots are pretty automatic. You hit the shortcut of your choice, and the resulting picture is saved to your desktop as a PNG image file. But what if you want a JPG? We’ve already covered that. How about saving the image to somewhere other than your desktop. Like iCloud maybe? Today we’ll see how to change the Mac’s default screenshot location to an iCloud folder.

How to add a stack of recent documents to your Mac’s Dock

By

recent documents stack
Like a tidy stack of documents, right in your Dock.
Photo: Charlie Sorrel/Cult of Mac

Left to its own devices, the Dock on your Mac is little more than a list of running apps, plus a trash can. You probably already know that you can force apps to stick around in the Dock for quick-launching, and that you can drag any folder to the Dock and just click it to see inside. But did you know that you can add special folders that show you your recent documents, applications, your favorite items, and more?

The recent documents folder is worth the price of this tip alone (which is $0 BTW), because it keeps track of all your recently-used documents, anywhere on your Mac, and gathers them into one place. If you’re the kind of person who has a desktop cluttered with pretty much all your documents, then fast access to that file you were using one moment ago — and you swear it was right here, oh God where has it gone — is a lifesaver.

Here’s how to add it.

Huge security flaw leaves macOS High Sierra open to attack

By

macOS High Sierra
Apple let a major security flaw slip through the cracks.
Photo: Apple

A serious security flaw in macOS High Sierra has been exposed that allows anyone to gain full access to affected Macs without knowing the computer’s administrative password.

The bug appears to let someone log into the admin account on a Mac by simply typing “root” as the username while leaving the password field blank. Attackers could potentially exploit the bug to access locked Macs and gain access to personal information.

How to make JPEG screenshots the default on your Mac

By

JPG screenshot location
You'll have to dust off the Terminal for this tip. Seriously, though, kids, don't let your computer get this filthy.
Photo: Charlie Sorrel/Cult of Mac

By default, any screenshots you take on your Mac, iPad or iPhone get saved as PNG files. That’s great, because PNG files are pixel-perfect, and they support transparency (for those neat floating-window shadows).

But they’re not JPEGs, which means they’re not universally supported. Luckily, you can easily make JPEG screenshots the default, at least on the Mac.

How to try Ubuntu Linux without risking your Mac

By

Ubuntu running on my Macbook Pro -- beautiful.
Ubuntu running on my Macbook Pro -- beautiful.
Photo: Rob LeFebvre/Cult of Mac

Have you ever wanted to try out a different operating system on your Mac? Ever since Apple started using Intel chips in their computers, it’s been super simple to run Windows and even popular Linux distributions via Boot Camp, virtual environments like Parallels and VMWare Fusion, and the like.

The problem is that you need to use up precious system resources to run these things on your Mac. Even virtual machines take up disk space, as does running Boot Camp and partitioning your main Hard drive. What if you just want to test something out on your Mac before fully committing?

Turns out it’s fairly easy to run Linux on your Mac without using up any bit of your hard drive. Using a flash drive and some Terminal commands, you can check out a distribution like Ubuntu running right on your Mac without having to sacrifice a thing. Here’s how.

How to make your Mac look like Fallout 4

By

Terminal never looked so post-apocalyptic.
Terminal never looked so post-apocalyptic.
Photo: Cathode

If you’re like me, you’re playing Bethesda’s post-apocalyptic RPG Fallout 4 a lot lately. And that probably means you’ve stumbled across a lot of retro CRT monitors that have quasi-Unix systems running on them.

OS X? It’s also a quasi-Unix system. It runs off of a Unix base, which is accessible through the Terminal app.

And if you want Terminal to look like Fallout 4? Just download this app.

Quickly Hide All The Icons On Your Desktop [OS X Tips]

By

Look, ma! No icons!
Look, ma! No icons!

There are times when you just need to clear off the icons on your Desktop, like when you’re giving an important presentation at work. No one wants to see all the images you’ve saved from the internet, right?

I used to solve this problem with a Sort Me folder on the Desktop, just select all in a Finder window focused on the Desktop, and drag it all to the Sort Me folder.

There’s an even faster and easier way to hide all the icons on your Desktop, though, using the Terminal.

Make The Most Of Your Terminal History With A Bang [OS X Tips]

By

history

If you’ve spent enough time messing around in Terminal, you’ll know one thing for sure: re-typing the stuff you’ve laboriously typed in with only minor differences is tedious. And it happens more often than we’d like.

The Terminal does, however, keep a history of all the commands you’ve typed into it. To see this in action, you can cycle through the last few commands you’ve typed in, simply hit the arrow keys up or down when in Terminal.

There are a few more less intuitive commands to make the best use of your Terminal history, however.

How To Cut Or Copy Text In Quick Look [OS X Tips]

By

text selection

Quick Look is a fantastic bit of tech, letting you view any file up close and personal with a quick tap on the Spacebar. It works in the Finder, in Open and Save dialogs, and across a ton of other apps like iPhoto.

It’s basically the best new thing ever.

There are times, though, that I forget I’m previewing a file with Quick Look and I head up to the text in a document to copy and paste it elsewhere, only to be rebuffed. You just can’t do this.

Unless, of course, you enable this feature using Terminal.

Quickly Re-Type Previous Text In Messages App [OS X Tips]

By

messages buffer

When you’re typing in Terminal, it’s easy to access the commands you’ve previously typed with the Up arrow on your keyboard. This can be handy when you have to re-type a long, complicated command. Simply hit the up-arrow and you’ll get the previously entered command.

Hit the up-arrow again, and you’ll get the command you entered before that, and so on, cycling through in reverse order until you get to the very first command entered in that particular Terminal window.

Turns out, you can do a similar thing in Messages, too.

How To Repair & Verify Your Hard Drive From The Command Line [OS X Tips]

By

verify volume

OS X offers a very nice graphical user interface to verify and repair your hard drive, located in the Utilities folder. It’s called Disk Utility, and you can use it as the first line of defense when weird disk-related things happen to your Mac’s hard drive.

If, however, you want to dig in a bit deeper, or you’re already running Terminal a lot and don’t want to launch a separate app, you can use the following commands to both verify (check for problems) and repair any problems that you might find when verifying.

How To Play Two Video Game Classics In Terminal [OS X Tips]

By

tetris

And here you thought Terminal was just for Unix geeks.

Ok, well, maybe it really is, but there’s a fun easter egg or two hidden in the old UNIX code that underlies Apple’s OS X software.

Turns out that you can play Tetris and Snake, two classic games from the dawn of digital gaming, in a Terminal window. Intrigued? It’s super easy.

Go Ahead, We Don’t Mind: Put The Dock In The Corner On your Mac [OS X Tips]

By

Dock Upper Left

While no one puts baby in the corner, you can ignore that time-honored advice and actually put the Dock in the corner on the screen of your Mac.

While the traditional tools for moving the Dock around will let you move it to the right, left, or bottom of the screen, this little bit of Terminal magic will have the dock pinned to the far corners of your Mac’s screen, either the right bottom, the top left, or any other corner you can imagine.

Enable The Web Server In Mountain Lion [OS X Tips]

By

WebSharing

It used to be a no-brainer to enable the Apache web server included with Mac OS X. You’d hop into the System Preferences, fire up the Sharing preference pane, and then you’d be good to go.

Starting in Mountain Lion, however, Apple hasn’t given a user-friendly checkbox as in previous OS X releases. Instead you need a little bit of Terminal magic.

Here’s how to enable and start the Web Service in OS X Mountain Lion.