Questions tagged [macos]

macOS is the current marketing name for Apple's Macintosh Operating System. This OS was previously known as OS X, and Mac OS X before that (which itself succeeded the 'classic' Mac OS).

Filter by
Sorted by
Tagged with
3029 votes
8 answers
2.5m views

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 ...
The Onin's user avatar
  • 66.9k
987 votes
11 answers
1.2m 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.
amphibient's user avatar
  • 11.7k
702 votes
15 answers
589k views

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 ...
Adam's user avatar
  • 12.7k
607 votes
156 answers
341k 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 ...
599 votes
15 answers
752k 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 ...
deter's user avatar
  • 5,993
558 votes
13 answers
205k 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 ...
Caleb's user avatar
  • 7,073
483 votes
2 answers
168k views

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'...
Reyraa's user avatar
  • 5,048
471 votes
7 answers
492k 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 ...
3cheesewheel's user avatar
  • 5,017
460 votes
7 answers
658k views

How can I create a symbolic link in Terminal?

What command is used to create a symbolic link/soft link?
Patrick's user avatar
  • 4,609
447 votes
1 answer
629k views

How do I launch Finder from terminal or command line [duplicate]

I use command line a lot, like most programmers. I want to be able to launch Finder, Safari or any other application for that matter from command line e.g. finder . where it will start Finder ...
Vijay Kumar's user avatar
  • 4,471
404 votes
133 answers
246k 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 ...
399 votes
13 answers
242k 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 ...
Nathan Greenstein's user avatar
390 votes
13 answers
326k views

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

How can I configure Mac Terminal to have color ls output? I am using MacOS 10.5
user avatar
371 votes
7 answers
268k 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 ...
AlBlue's user avatar
  • 2,745
353 votes
13 answers
635k 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 ...
dave4420's user avatar
  • 3,839
348 votes
6 answers
130k 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 ...
Rob J's user avatar
  • 3,481
345 votes
6 answers
965k 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 ...
Jonas's user avatar
  • 6,202
338 votes
17 answers
809k 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 |...
Jonik's user avatar
  • 6,663
315 votes
8 answers
721k 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 ...
at01's user avatar
  • 5,595
313 votes
14 answers
531k views

Can I get the CPU temperature and fan speed from the command line in OS X?

Is there a command I can run from the command line in OS X to get the current CPU temperature and/or the fan speed(s)? To be more specific, I'd like to be able to get the same info available in the ...
matt b's user avatar
  • 3,378
313 votes
3 answers
194k 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 ...
user avatar
297 votes
7 answers
130k 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 ...
mix's user avatar
  • 3,185
291 votes
30 answers
538k views

How to create a text file in a folder

In windows I right click and then there is an option to create a text file. How to do so in mac?
user4951's user avatar
  • 3,461
286 votes
17 answers
316k 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.)
Daryl Spitzer's user avatar
281 votes
7 answers
132k 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 ...
Arno's user avatar
  • 2,921
279 votes
4 answers
1.6m 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.
Vishnu's user avatar
  • 2,913
265 votes
3 answers
183k 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". ...
Josh's user avatar
  • 8,626
263 votes
8 answers
746k 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 ...
Jesper Rønn-Jensen's user avatar
263 votes
5 answers
505k 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?
wfbarksdale's user avatar
  • 2,789
254 votes
15 answers
545k views

Where can I find the installed package path via brew

I installed some packages via brew. But I can not find where they are. I can not get access by typing hping on terminal % brew install hping (git)-[master] Warning: hping-3.20051105 already ...
poc's user avatar
  • 2,759
254 votes
13 answers
345k views

Why are dot underscore ._ files created, and how can I avoid them?

I am using different operating systems on different machines on different locations. I am using a USB flash disk to keep my files (source codes etc.). I am new to Mac OS X and now I realize there are ...
nimcap's user avatar
  • 3,048
249 votes
7 answers
137k 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 ...
syntagma's user avatar
  • 10.8k
246 votes
17 answers
378k views

Is there a keyboard shortcut to move a window from one monitor to another?

Is there a free app that I can use to move a window from one monitor to the other monitor (assuming only two monitors) via the keyboard? I shouldn't have to use the mouse at all (e.g., for selecting ...
volni's user avatar
  • 2,938
242 votes
3 answers
115k views

How can I make Safari show the URL when I hover over a link?

Safari 5.0.1 on OS X Snow Leopard (10.6) doesn't seem to have any status bar in which the URL of a link shows when the user moves the cursor over a link (without clicking) All other browsers I've ...
DarenW's user avatar
  • 5,063
229 votes
11 answers
172k 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 ...
misaligar's user avatar
  • 2,477
224 votes
11 answers
115k 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 ...
Andrew's user avatar
  • 3,214
222 votes
8 answers
1.5m 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 ...
DaG's user avatar
  • 3,020
215 votes
14 answers
80k views

Can Touch ID on Mac authenticate sudo in Terminal?

Can Touch ID on Mac authenticate sudo in Terminal?
P A N's user avatar
  • 9,704
211 votes
8 answers
96k 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....
Artiom Dashisnky's user avatar
208 votes
16 answers
227k views

How can I rename Desktops / Spaces in macOS?

I would like to give names to different Mission Control Spaces; currently a new Space gets the default name Desktop n where n is a number. Desktop 1 | Desktop 2 | Desktop 3 How can I give each space ...
Dror's user avatar
  • 2,459
203 votes
4 answers
142k views

Need a cli to check the sha256 hash of a file

To check the sha1 of a file I would use openssl sha1 <file> I'm not sure what to use to check the sha256 hash of the file however, what would you recommend?
erikvold's user avatar
  • 2,878
202 votes
6 answers
1.1m views

How do I run a .sh or .command file in Terminal

I've always wanted to be able to run a script I've downloaded online directly from the Finder but just double clicking the file does not work.
Maximus's user avatar
  • 5,735
201 votes
7 answers
78k views

Open Finder window from current Terminal location?

If I am in a specific path in a Terminal window, how can I open that same window in a new Finder window? Note: This is the opposite of opening a Terminal from Finder.
Jim McKeeth's user avatar
  • 4,625
196 votes
2 answers
490k views

List USB devices on OSX command line

Can I List USB devices on OSX - similar to lsusb on Linux. I know I can access from System Information.
Milliways's user avatar
  • 7,920
195 votes
12 answers
176k views

Why is it not possible to use the "cut" command to manipulate a file in the Finder?

On OS X 10.6 (Snow Leopard), I don't seem to be able to us the "Cut" command on a file in the Finder, like you can do in Windows Explorer on Microsoft Windows. (In Windows, once you select a file and "...
Marty's user avatar
  • 2,177
195 votes
6 answers
481k views

How do I disable System Integrity Protection (SIP) AKA "rootless" on macOS?

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 ...
bdnchr's user avatar
  • 2,053
192 votes
5 answers
120k views

Homebrew: Your CLT does not support macOS 11.0

I recently upgraded to macOS Big Sur developer Beta 8, when I do brew install jenv I get the error Homebrew: Your CLT does not support macOS 11.0. I am using CommandLine tools GM version. Tried to ...
Pavan Jadda's user avatar
  • 2,790
191 votes
6 answers
688k views

Is it safe to delete ~/Library/Caches?

Is it safe to delete the file Caches, in the Library of the Mac OS X Hard Drive? It's a pretty big file, 3.56 GB, Caches reminds me of logs i don't need or browser cookies. Is it safe to delete the ...
GummyArgyle's user avatar
  • 3,091
190 votes
15 answers
101k views

How to move files to trash from command line?

I do a lot of terminal work, and today had the experience of typing rm fileInQuestion.txt Before finding out that I did actually need fileInQuestion.txt. If I'd deleted in the GUI then I would have ...
Joe's user avatar
  • 5,019
189 votes
12 answers
193k views

Move through images in a folder with Preview.app

When looking at an image in a directory with the Preview application, I'm used to the Windows behaviour of using the ←/→ keys to move through all the other viewable images in that ...
danbo's user avatar
  • 1,991

1
2 3 4 5
864