Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [macos]

Apple's Unix-based operating system. Use for questions about the operating system or to provide OS context. For Mac hardware questions, use [mac]. Questions about using macOS on non-Apple hardware ("Hackintosh"), are off-topic.

546
votes
12answers
160k views

macOS keeps asking my ssh passphrase since I updated to Sierra

It used to remember the passphrase, but now it's asking it to me each time. I've read that I need to regenerate the public key with this command, which I did: ssh-keygen -y -f id_rsa > id_rsa.pub ...
312
votes
5answers
381k views

Permissions on private key in .ssh folder?

I changed my permissions in my .ssh folder and now when I use a piece of software that uses my private key, I have to type my password each time. What should my permissions be on my id_rsa file to ...
305
votes
6answers
288k views

In Mac OS, what is the keyboard shortcut to switch between windows of the same application?

I often use the Cmd+Tab shortcut to switch between different applications (for example: Xcode and Google Chrome), but is there a shortcut to switch between different windows of the same application (...
287
votes
20answers
421k views

Move an off-screen window back on-screen on Mac OS X

It seems that Mac OS X 10.6.1 Snow Leopard has a tendency to leave some windows off-screen at times, especially when I disconnect an external monitor from my MacBook. How can I move the window back on-...
280
votes
13answers
176k views

Mac OS X equivalent of the Ubuntu “tree” command

Is there an equivalent to the Ubuntu tree command for Mac OS X?
255
votes
17answers
729k views

“Show desktop” keyboard shortcut in Mac OS X

I am using a MacBook Pro with Mac OS X 10.5. Is there a similar function to "show desktop" (shortcut is WIN+D) on a Mac?  It should hide all applications and show a clean desktop.
238
votes
27answers
222k views

What can I do to stop the Play / Pause button from opening iTunes?

In Snow Leopard the Play / Pause media button (on the F8 key) opens up iTunes. How can I disable that? Preferably keeping the old Leopard behaviour, so I can use it to control other media applications ...
231
votes
15answers
294k views

Looking for HTTP debugging proxy for Mac similar to Fiddler on Windows [closed]

In previous jobs when I've worked on a Windows machine, I've used Fiddler for viewing HTTP transactions and debugging. I'm specifically looking to monitor the HTTP transactions for an ajax site I'm ...
225
votes
6answers
146k views

How do you prevent the dock from switching monitors in macOS Mojave?

In Mavericks, Apple introduced a "feature" where if you hover at the bottom of any screen the dock pops up on that screen. This is disrupting my workflow as I am constantly having the dock pop up ...
221
votes
4answers
99k views

What's the equivalent of Linux's updatedb command for the Mac?

If I want to use the locate command on a Linux machine, I usually run sudo updatedb first to update the database. I can run the locate command on OS X 10.5 but I can't find updatedb. What's the ...
210
votes
9answers
432k views

Mac OS X: Best Way to Make an ISO from a CD or DVD

Both command-line and screen-oriented pointers appreciated! update: I verified the disk utility, hdiutil, and dd methods. dd seems the fastest, 30 minutes on my macbook pro vs. 40 minutes for ...
202
votes
3answers
67k views

How can I remove outdated installed versions of Homebrew packages?

How can I remove outdated versions of Homebrew packages that are installed side-by-side with current versions?
184
votes
3answers
198k views

How to add user to a group from Mac OS X command line?

trying to add a user to a group from the command line but can't figure out how? Specifically this is on Mac OS X Server 10.5.8 like to add user to 'admin' and 'wheel' groups
176
votes
16answers
160k views

How to encode base64 via command line?

Is there a terminal command in Mac OS X which will base64 encode a file or stdin?
163
votes
8answers
177k views

Is there a fix for the “Too many open files in system” error on OS X 10.7.1?

I need to get rid of the pesky "Too many open files in system" limit on OS X 10.7.1.  Is there a way?
160
votes
3answers
7k views

On OS X, why does `sudo ls` show hidden (dot) files?

With OS X Yosemite, using the following commands, I get the following: $ touch .a $ touch b $ /bin/ls b $ /bin/ls -A .a b $ sudo /bin/ls .a b It shows hidden files (that have names starting with a ...
160
votes
3answers
156k views

How can I install 7zip so I can run it from Terminal on OS X

I would like to be able to run 7zip from the command line on Mac. Does anyone have instructions on how to set this up?
144
votes
6answers
371k views

How to uninstall Homebrew?

I’ve got some problems with the package manager, Homebrew. I can’t find how to remove it! Is it safe to remove whole /usr/local? Homebrew was installed somewhere in that directory.
143
votes
16answers
97k views

Command-line application for converting SVG to PNG on Mac OS X

Are there any command-line programs that can convert an SVG to PNG, that run on Mac OS X? Edit: Dylan B had a good answer with ImageMagick. For reference, to install ImageMagick with SVG support on ...
142
votes
8answers
195k views

What’s a good way to extract .rar files on the Mac? [closed]

Anything built-in? (E.g. command line tools.) Any well-regarded software? Update: I like The Unarchiver, but vote up your favourite, or add it as an answer if it isn’t there.
141
votes
4answers
161k views

How to find out Mac OS X version from Terminal?

I know how to find Mac OS X version from GUI: Apple Menu (top left) > About This Mac Is there a Terminal command that will tell me Mac OS X version?
138
votes
5answers
162k views

How to find files with certain text in the Terminal

I'd like to find all files that contain a certain string of text. How would you do that in the Terminal?
137
votes
3answers
105k views

What is __MACOSX folder?

What are these __MACOSX folders I keep seeing in zip files made by people on OSX? Some take as much as 30% of the file. What program are producing these __MACOSX folder and how can mac users avoid ...
134
votes
9answers
135k views

How to use Mac OS X Keychain with SSH keys?

I understand that since Mac OS X Leopard the Keychain has supported storing SSH keys. Could someone please explain how this feature is supposed to work. I have some RSA keys that I've generated ...
133
votes
8answers
157k views

Where does $PATH get set in OS X 10.6 Snow Leopard?

I type echo $PATH on the command line and get /opt/local/bin:/opt/local/sbin:/Users/andrew/bin:/usr/local/bin:/usr/local/mysql/bin:/usr/local/pear/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/...
132
votes
4answers
53k views

What's like OSX's pbcopy for Linux

In a terminal in OSX I can pipe output to pbcopy and then go into a web browser and paste it. I tried this in Linux with xcopy but when I switch to the browser it just overwrites the clipboard with ...
131
votes
3answers
29k views

Case insensitive tab completion in Bash

Is there any way to make Bash tab complete case insensitively? $ bash --version GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0) Copyright (C) 2007 Free Software Foundation, Inc. I am ...
130
votes
2answers
101k views

How do you run a SSH server on Mac OS X?

How do you run a ssh server on Mac OS X?
129
votes
6answers
46k views

How to tab between buttons on an Mac OS X dialog box

I know that there has been a similar question asked here very recently, but I was wondering if it was possible to tab between buttons on default Mac OS X dialog boxes? I already have the All controls ...
122
votes
9answers
63k views

Keyboard shortcut to unhide or unminimize a window in OS X

I know how to Hide (Cmd+H) or Minimize (Cmd+M) a focused window in OS X, but I can't find a keyboard shortcut or even a menu item to restore, unhide, unminimize, or otherwise show a window that I've ...
121
votes
9answers
83k views

Is there any program or way to make Mac OS X's ⌘-tab behave like Windows' alt-tab?

Is there any program or way to make Mac OS X's ⌘(command)-tab behave like Windows' alt-tab? That is, instead of switching between applications, to switch between windows of all applications. I do ...
114
votes
7answers
83k views

Why does terminal say: “You have mail”?

Any idea why my Mac terminal says: You have mail in /var/mail/lofye How can I make it stop saying that every time I open terminal?
112
votes
12answers
177k views

What keyboard shortcuts move, resize, and maximize windows under Mac OS X?

I just checked http://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts but the following "Window management" entries are blank for Mac OS X: Move the focused window Resize the focused window ...
109
votes
3answers
80k views

Why does MDS run wild in Mac OS X 10.6?

I've been having trouble with the MDS process running wild on my MacBook Pro 13". I've read on other support forums indicating that improperly formatted external drives can be an issue, but I have no ...
108
votes
2answers
109k views

How do you re-install a package with Homebrew (Mac)?

Struggling to find good Homebrew documentation (or tutorial)... In the mean time I need to reinstall ImageMagick that was installed with Homebrew (brew install imagemagick) and not sure if I should ...
107
votes
4answers
178k views

What is the “wheel” user in OS X?

I recently reinstalled iTunes and I noticed something peculiar. The "original" version of iTunes has a user in the permissions known as "wheel" that is set to "Read Only". I dragged this version of ...
106
votes
10answers
102k views

Keyboard shortcut to jump between tabs on OS X Terminal

In OS X Terminal.app, if you open new windows, you can easily switch between them with Cmd-1, Cmd-2, Cmd-3, etc. You can also cycle between tabs, using Cmd-Shift-{ and Cmd-Shift-}. (or Cmd-Shift-Left ...
106
votes
7answers
297k views

How can I scan the local network for connected devices? (Mac OS)

I'm basically looking for something like this but available on Mac. I am trying to connect a new workstation to our wireless multifunction printer and I'm having a hell of a time getting the device ...
103
votes
7answers
46k views

How can I get control+left arrow to go back one word in iTerm2?

I was reading up in the Linux manual and I noticed that it said I could use control+left and control+right to move forward and back words in the terminal while editing. "Pressing Ctrl plus the Left ...
101
votes
2answers
40k views

What is the keyboard shortcut to focus to address bar in Mac Chrome?

In Windows Chrome, alt + d is the shortcut. What is it in Mac Chrome?
100
votes
14answers
321k views

How do I view my clipboard history on OS X?

I am often copying and pasting various tidbits of information, and then forgetting to save it. I would copy something else and lose what I had in the clipboard before. Is there some sort of built-in ...
97
votes
16answers
98k views

Switch between windows on Mac OS X?

On Windows when I do alt+tab I can switch between windows. If I have 5 firefox windows open then using alt+tab will switch between them. On my MacBook, cmd+tab switches between applications, not ...
93
votes
10answers
34k views

How to stop Mac to convert typing double dash to emdash?

I think it's a Mountain Lion thing, when you type - (dash) twice, it becomes — (emdash). When you type tm, it becomes ™ (trademark symbol). Or when you type three . (dot), it becomes … (elipsis). ...
93
votes
10answers
40k views

Linux / OS X tar incompatibility – tarballs created on OS X give errors when untarred in Linux

When I tar up files on my Macbook and untar them in Linux, I repeatedly get the following warnings/errors: tar: Ignoring unknown extended header keyword `SCHILY.ino' tar: Ignoring unknown extended ...
93
votes
3answers
56k views

“Google Software Update would like to control this computer…” What?

For the first time (that I've seen), some piece of Google's software updater is now asking for permission to control my computer. I couldn't find any other mention of this on the web, so I don't know ...
90
votes
4answers
97k views

How to selectively route network traffic through VPN on Mac OS X Leopard?

I don't want to send all my network traffic down to VPN when I'm connected to my company's network (via VPN) from home. For example, when I'm working from home, I would like to be able to backup all ...
89
votes
12answers
108k views

Is there a way to move the current window to another desktop without using a mouse in OS X?

In OS X as I'm aware to move the current window to the next desktop, I'd click down on the title bar of the window to have it in move mode, and then while keeping the mouse button down, press ctrl-<...
88
votes
14answers
57k views

How to get git-completion.bash to work on Mac OS X?

I have followed http://blog.bitfluent.com/post/27983389/git-utilities-you-cant-live-without to add git-completion.bash to my /opt/local/etc/bash_completion.d/git-completion and I put PS1='\h:\W$(...
88
votes
6answers
210k views

How do I find a file by filename in Mac OSX terminal?

I want to find a file on my Macbook with the filename: abc.dmg. I've tried to use spotlight, but it doesn't find it. When I tried find, and used: find -name abc.dmg -path /, I got errors back. What ...
87
votes
7answers
47k views

Using Ctrl-Tab to switch between tabs in Mac Terminal.app

How can I make Ctrl-Tab and Ctrl-Shift-Tab switch between tabs in Terminal.app on a Mac (OS 10.4 and 10.5 specifically)? This is how I switch tabs in Firefox and Aquamacs, and Command-Shift-[ and ...