All Questions

1306
votes
7answers
748k views

Why am I getting an “invalid active developer path” when attempting to use Git after upgrading to macOS Mojave?

After upgrading to macOS Sierra (and later Mojave), I tried to run git from Terminal but it kept giving me the following error: xcrun: error: invalid active developer path (/Library/Developer/...
569
votes
150answers
325k views

Please share your hidden macOS features or tips and tricks

Do you know any hidden or little-known nice feature of macOS (née Mac OS X)? It doesn't matter what it is—maybe just a short terminal command or a keyboard shortcut. Share your experiences on ...
405
votes
133answers
235k views

Got any tips or tricks for Terminal in Mac OS X?

One tip or trick per answer. My favorite is open . Opens the folder you're currently browsing in Finder. You can also pass URLs, images, documents or else to open. If you specify a program name ...
368
votes
5answers
293k views

List of all packages installed using Homebrew

Is it possible to and how do I get a list of all the packages installed on my Mac using Homebrew? I am not interested in packages installed outside of Homebrew.
368
votes
7answers
265k views

How do I recompile Bash to avoid Shellshock (the remote exploit CVE-2014-6271 and CVE-2014-7169)?

Given that Bash 3.2 (the version shipped by OS X) is vulnerable to the remote execution exploit known as "Shell Shock" (CVE-2014-6271 and CVE-2014-7169) how do I rebuild Bash and secure my system ...
337
votes
37answers
199k views

What Window Management Options exist for OS X?

I'd like to do something with my windows on OS X, where something includes options like re-arranging, moving, re-sizing, remembering positions, cloning across Spaces, etc. What options exist? Rules ...
328
votes
10answers
243k views

How can I configure Mac Terminal to have color ls output?

How can I configure Mac Terminal to have color ls output? I am using MacOS 10.5
324
votes
5answers
461k views

How can I create a symbolic link in Terminal?

What command is used to create a symbolic link/soft link?
324
votes
6answers
258k views

How can I permanently add my SSH private key to Keychain so it is automatically available to ssh?

It seems that ssh-add -K ~/.ssh/id_rsa will load your key but will ask for the password each time you reboot. I am looking for a solution that would not require me to re-enter the key password ...
316
votes
7answers
139k views

How do I disable Chrome's two-finger back/forward navigation?

In dev builds of Chrome, they've implemented, refined, and released two-finger swipes left/right in order to browse back/forward in the browser history. Unfortunately, you can accidentally trigger it ...
296
votes
9answers
103k views

Remap “Home” and “End” to beginning and end of line

Most of my computing time is spent in Linux (with occasional time in Windows). On these platforms the Home and End keys universally jump to the beginning or end of the current line. I am gradually ...
292
votes
10answers
150k views

git auto-complete for *branches* at the command line?

On my Linux machine I have autocomplete for branches with Git. [Note we are talking about git branch completion, not bash completion (e.g. commands, files, etc). Thus NOT Lane's answer at all] For ...
282
votes
11answers
158k views

How can I trigger a Notification Center notification from an AppleScript or shell script?

I'd love to be able to take advantage of 10.8's Notification Center features in AppleScripts and shell scripts I write. Is there a built-in command or a third-party library I can use from either an ...
275
votes
7answers
126k views

“File Open” dialog is missing sidebar items

I'm having the strangest issue since updating to OS X El Capitan. My "Open File" dialogs show the sidebar but all my main (and useful) locations are missing. Take a look at this screenshot. This ...
267
votes
3answers
1.5m views

How to Retrieve the Wi-Fi Password of a Connected Network on a Mac

I need to find the password for a Wi-Fi network that I am already connected to. I'm using a MacBook Pro that's running OS X Lion. Any guidance is appreciated.
265
votes
5answers
91k views

How can I disable animation when switching desktops in Lion?

I would very much like to disable the sliding animation that occurs when switching desktops via ctrl+→/← or ctrl+[number] in Lion. This was previously accomplished in previous versions ...
249
votes
3answers
169k views

Hotkey to show hidden files and folders in File Open dialog?

This question is very similar to Is it possible to always show hidden/dotfiles in Open/Save dialogs?. How to show hidden files and folders in finder? is also related. However, I don't want to always ...
232
votes
3answers
150k views

What is the “rootless” feature in El Capitan, really?

I have just learned about the "Rootless" feature in El Capitan, and I am hearing things like "There is no root user", "Nothing can modify /System" and "The world will end because we can't get root". ...
228
votes
7answers
125k views

Make the green full screen window icon on Yosemite maximize windows

On Mac OS X Yosemite the green icon in every window: is by default used to make the application full screen. How do I make it work the same way as in previous versions of Mac OS X, i.e. to maximize ...
226
votes
8answers
483k views

How to change computer name so terminal displays it in Mac OS X Mountain Lion? [duplicate]

When I setup my computer I named it "Scott's MacBook Pro". And so when I go to System preferences->Sharing, it says Scott's MacBook Pro there as my computer name. However, opening up a terminal gives ...
208
votes
10answers
188k views

Shortcut for toggling between different windows of same app?

I opened two Google Chrome windows (because I am using multiple Gmails) and when I do the Cmd ⌘ Tab ⇥ shortcut it just shows me other applications that I opened but does not show me the other Chrome ...
206
votes
2answers
83k views

What is the difference between `brew` and `brew cask`?

So, what is the difference between brew and brew cask? I know that homebrew is a package management software. But what kind of software can I get there? Is it open source software and commercial ...
205
votes
8answers
75k views

I included emoji in my password and now I can't log in to my Account on Yosemite

I wanted to check if it's possible to use emoji in a password for my Account on OS Yosemite. It worked but I didn't realize that the login screen has only native keyboards, so I can't type emoji there....
201
votes
8answers
643k views

How can I manually delete old backups to free space for Time Machine?

I use a Time Capsule for backup and now I want the drive to back up data from an extra Mac. But the drive is filled up with old backups from Mac 1. There simply is not enough space available for the ...
201
votes
9answers
102k views

How to separate “mouse” and “trackpad” settings?

In System Preferences > Mouse there's a setting "Scroll direction: natural", which I don't like, so I unset. The problem is that this also unsets the setting for Trackpad, which I do like. How can ...
200
votes
2answers
268k views

How do I stop the Adobe Creative Cloud app from auto-launching on login?

How do I stop the Adobe Creative Cloud app from auto-launching on login? I don't see any option of stopping this, and for some reason it's not in OS X's user login options.
198
votes
10answers
114k views

How do I remove the Google Chrome notifications bell icon from the Mac OS X menu bar?

This bell icon showed up in my menu bar one day and there's no obvious way to disable it. How do I get rid of it?
192
votes
6answers
188k views

Why does my dock keep moving back to my other monitor?

I have a larger, external monitor connected to my MacBook Pro and have arranged it such that the dock is in the external monitor (via System Preferences > Displays > Arrangement, by dragging the white ...
183
votes
5answers
77k views

Applications Don't Show Up in Spotlight

Spotlight has stopped showing any results for my Applications. I've tried reindexing and removing the index so it rebuilds it. No change. I've tried adding Applications to the Privacy tab and removing ...
181
votes
239answers
45k views

Which OS X Applications do you find indispensable?

Please Search Prior To Posting! There are many applications already listed. In all likelihood, this includes the one you are thinking of. Please check the existing answers to avoid duplicates, and ...
179
votes
21answers
204k views

Is there a Mac OS X Terminal version of the “free” command in Linux systems?

On Linux, I often use the free command to see the current amount of free and used memory in the system. For example: $ free total used free shared buffers cached ...
178
votes
5answers
102k views

How to fix brew after OSX upgrade to Yosemite?

I faced some issue with Homebrew. I upgraded to Yosemite. After the upgrade, homebrew seems to be broken. I would run any brew command and get this error /usr/local/bin/brew: /usr/local/Library/brew....
178
votes
3answers
147k views

What is the difference between .bash_profile and .bashrc?

To make an alias for the Terminal in OS X, you can either put the aliases in .bash_profile or .bashrc. What is the difference between the two and why would I choose to put aliases in one and not the ...
177
votes
26answers
56k views

Is there a quick way to lock my Mac?

On Windows you can hit the keys Windows+L to lock your computer if you step away. I don't want to have to remember if sleep currently asks for a password, if there is a time out where my screen isn't ...
176
votes
107answers
54k views

What tiny thing in Lion makes you smile or has caught you off guard?

I would like to call for a place to list some little things that surprise you about Lion. There are so many articles and lists of all the new features with information overload, I would rather focus ...
176
votes
13answers
326k views

Why doesn't .bashrc run automatically?

I put some alias commands in my .bashrc file, so that they might be loaded everytime I open a new Terminal window. Yet this doesn't happen. I have to select run script: in the Terminal>Preferences>"...
175
votes
16answers
463k views

How to combine two images into one on a Mac?

Say I have two photos (or any images), for example with the following dimensions: +----------+ +----------+ | | | | | | | | |320 x 428 | and |...
171
votes
10answers
106k views

macOS Sierra doesn’t seem to remember SSH keys between reboots

I have to run this command since upgrading to macOS: ssh-add -K Corrects the problem after the reboot but I have to run this command every time I log on to my computer. If I do not run the command ...
168
votes
13answers
166k views

What do I type to produce the command symbol (⌘) in Mac OS X?

What combination of keys do I press to produce the command symbol (⌘) on Mac OS X? (I copied the above symbol from http://en.wikipedia.org/wiki/Command_key.)
163
votes
12answers
249k views

How do I downgrade node or install a specific previous version using homebrew?

I'm using brew. I have node installed, using brew. I want to use an earlier version of node. Online, I find instructions such as, for example: cd /usr/local/Library/Formula brew remove node --force ...
161
votes
6answers
45k views

Using Alt/Cmd + Right/Left Arrow in iTerm

Is it possible to move between words in iTerm using Alt + Right/Left Arrows ? Now if I press Alt+Left I will get '[D' and '[C' if I press Alt+Right.
159
votes
4answers
500k views

How can I list my open network ports with netstat?

I would like to list my open network ports in Terminal with built in commands. As what I know, netstat is the command to use. But I'm struggling to get any useful information out of it. How can I ...
156
votes
5answers
1.0m views

How do I combine two or more images to get a single pdf file?

Say I have some image files (for instance, the result of scanning some sheets) and I want to combine them into a single pdf file, each image on a different page. Is there a faster / more convenient ...
154
votes
7answers
71k views

Why isn't iTunes shuffle random?

This is a problem that has bugged me for the last 5 years, across multiple devices, operating systems and installs of iTunes and iPods. I have found that the iTunes shuffle feature does not randomly ...
152
votes
5answers
294k views

Can I open files in TextEdit from the Terminal in Mac OS X?

I frequently find that a Terminal command to open a file in TextEdit would be very handy. Does such a command exist on Mac OS X?
149
votes
5answers
107k views

How to replace Mac OS X utilities with GNU core utilities?

I found there is some differences between the utility command I used on the mac OSX and linux. I want to make my experience united. How could I replace all my mac utilities with GNU utilities?
149
votes
4answers
86k views

What are pros and cons for MacPorts, Fink and Homebrew?

I'm just migrating from Ubuntu Linux to Mac, and everything is new and I'm re-learning a lot of stuff. On Linux I had the excellent apt-get to manage software packages. I googled for an alternative ...
148
votes
13answers
63k views

Keyboard shortcut for restoring applications from the Mac OS X Dock?

Is there a keyboard shortcut to restore a minimised application window from the Dock? Almost all Apple Mac OS X applications respond to the Apple + M command which minimises the current application ...
145
votes
6answers
309k views

How do I disable System Integrity Protection (SIP) AKA “rootless” on macOs [OS X]

Apple has introduced System Integrity Protection, also known as "rootless", with OS X 10.11, El Capitan. I understand this is a step for general protection against malware but as a developer I need ...
144
votes
10answers
125k views

What is the difference between iTerm2 and Terminal?

I keep hearing that iTerm2 is much better than Terminal. I downloaded iTerm2 today and played around with it, but I couldn't see what is so much better about iTerm2. iTerm2 seemed just like Terminal. ...

15 30 50 per page