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.

Filter by
Sorted by
Tagged with
597
votes
12answers
194k 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 ...
394
votes
5answers
462k 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 ...
322
votes
13answers
201k views

Mac OS X equivalent of the Ubuntu “tree” command

Is there an equivalent to the Ubuntu tree command for Mac OS X?
318
votes
8answers
300k 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 (...
304
votes
21answers
442k 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-...
282
votes
17answers
747k 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.
259
votes
6answers
162k views

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

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 ...
245
votes
27answers
230k 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 ...
240
votes
15answers
306k 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 ...
235
votes
4answers
109k 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 ...
229
votes
17answers
225k 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?
219
votes
9answers
447k 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 ...
218
votes
3answers
76k 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?
198
votes
10answers
215k 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?
198
votes
3answers
217k 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
189
votes
3answers
186k 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?
174
votes
5answers
201k 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?
172
votes
16answers
118k 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 ...
167
votes
8answers
222k views

How can I extract .rar files on the Mac? [closed]

Is there anything built-in that does this? (E.g. command line tools.) Or are there any third-party apps? Update: I like The Unarchiver, but vote up your favourite, or add it as an answer if it isn’t ...
162
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 ...
155
votes
4answers
167k 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?
155
votes
3answers
121k 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 ...
151
votes
6answers
381k 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.
145
votes
9answers
97k 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 ⌘Tab(Command-Tab) behave like Windows' AltTab? That is, instead of switching between applications, to switch between windows of all applications? I do ...
142
votes
9answers
145k 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 ...
142
votes
3answers
33k 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 ...
142
votes
4answers
58k 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 ...
140
votes
8answers
161k 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:/...
139
votes
2answers
112k views

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

How do you run a ssh server on Mac OS X?
138
votes
6answers
48k 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 ...
137
votes
10answers
68k 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 ...
127
votes
12answers
199k 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 ...
125
votes
7answers
286k 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 ...
125
votes
7answers
94k 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?
120
votes
2answers
122k 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 ...
119
votes
10answers
113k 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 ...
118
votes
3answers
45k 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?
116
votes
7answers
51k 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 ...
116
votes
8answers
328k 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 ...
116
votes
13answers
348k 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 ...
114
votes
4answers
194k 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 ...
112
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 ...
106
votes
10answers
46k 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 ...
106
votes
14answers
127k 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+&...
105
votes
10answers
37k 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). ...
100
votes
16answers
102k 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 ...
100
votes
3answers
62k 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 ...
99
votes
4answers
153k views

Command to unlock “Locked” files on OS X

I copied a lot of read-only files from a Windows system to my Mac. When viewing the Info for each file using "Get Info", I can see they are Locked. I'm writing a bash script to copy over some files ...
98
votes
11answers
74k views

Enter to open a file in Finder

I find the Cmd + O shortcut to open a file in Finder unintuitive. Does anyone know how to change it? I'd like to set it so that enter opens a file instead of going into rename mode.
96
votes
4answers
106k 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 ...