Most Popular

1500 questions
3033
votes
8 answers

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

After upgrading to macOS Sonoma, I tried to run git from Terminal but it kept giving me the following error: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at:…
The Onin
  • 67,065
  • 4
  • 14
  • 18
996
votes
11 answers

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.
amphibient
  • 11,833
871
votes
9 answers

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 between logins.
sorin
  • 29,875
703
votes
15 answers

How to find cause of high kernel_task cpu usage?

Occasionally my machine will have a kernel_task instance max out the CPU: This can last from minutes to sometimes hours. The machine is effectively unusable in this state. Restarting doesn't help; a new kernel_task pops up again until it finishes…
Adam
  • 12,720
645
votes
13 answers

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 you have different settings for mouse and…
iconoclast
  • 9,739
607
votes
157 answers

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 hidden Mac OS X features with us.. Please post one tip…
Am1rr3zA
  • 13,219
  • 14
  • 68
  • 88
606
votes
15 answers

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 windows that are already opened. How to switch to…
deter
  • 6,063
560
votes
13 answers

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 getting used to using the one Apple computer in my…
Caleb
  • 7,093
536
votes
3 answers

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 software?
elzaphod
  • 5,599
535
votes
8 answers

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

Chrome supports two-finger swipes left/right in order to browse back/forward in the browser history. Unfortunately, Chrome handles this differently to other macOS applications, and it's far too easy to accidentally trigger it while you're in the…
Jason Salaz
  • 24,471
528
votes
12 answers

iTerm - going one word backwards and forwards

Would it be possible to configure iTerm 2 to go backwards and forwards one word through the curent text in the command line using a keyboard shortcut?
syntagma
  • 10,888
489
votes
2 answers

How to prevent Mac from changing the order of Desktops/Spaces

You may have encountered a situation in which Mac changes the order of desktops based on some events like alerts on a program or a web page in browser. How could I disable this logical change? Note: I'm using El Capitan, but I had this problem since…
Reyraa
  • 5,108
479
votes
16 answers

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 example I can type git checkout+TAB and get a list…
474
votes
7 answers

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 bar to the larger screen). This works fine,…
3cheesewheel
  • 5,047
  • 3
  • 16
  • 12
464
votes
7 answers

How can I create a symbolic link in Terminal?

What command is used to create a symbolic link/soft link?
Patrick
  • 4,649
1
2 3
99 100