Most Popular

1500 questions
164
votes
12 answers

How do I set environment variables on OS X?

I have always difficulties setting the Environment variables in OS X like JAVA_HOME, M2_HOME or PATH. How to set these on OS X Mavericks? I did some research but the answers I've found didn't really help me yet: export JAVA_HOME=/... (But it seems…
akcasoy
  • 1,869
162
votes
21 answers

How to switch between different Chrome windows with keyboard shortcuts?

Switching between applications is easy with command-tab. Switching between tabs is easy with command-} or control-tab. Switching between separate windows within an application is easy with command-`. However, that last one doesn't seem to work with…
162
votes
7 answers

Keyboard shortcut to switch focus between multiple displays on OS X 10.9+

The fact that each monitor acts on its own in OS X Mavericks is pretty cool. However, I find that I have to use my mouse and click on the unfocused monitor before I can actually slide back and forth its screens (or spaces). What's the keyboard…
abbood
  • 2,693
161
votes
10 answers

How can I copy files from my Mac to PC via Microsoft Remote Desktop?

I installed Microsoft's Remote Desktop and connected to a PC. How can I share files between my Mac and PC? When I use RDP on Windows, I can simply add a file to the clipboard and paste it inside the RDP window. The same thing doesn't seem to work in…
Senseful
  • 23,929
159
votes
7 answers

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 shuffle songs. In fact, I can accurately predict…
Josh Hunt
  • 3,677
156
votes
9 answers

How can I mount an SMB share from the command line?

I would like to mount an SMB network share from the command line (terminal); how would I go about that? I am using Mac OS X 10.6.4.
Eyvind
  • 1,725
155
votes
5 answers

Where can I download Safari for Windows?

This sounds like an absurd question, I know, but when I go to: http://www.apple.com/safari/ There isn't a download link! I'm sure it used to be there :-/ Here's what I see: Scrolling further just has more features. No link!
155
votes
23 answers

How to stop OS X from writing Spotlight and Trash files to memory cards and USB sticks?

When plugging a USB stick into a Mac, OS X creates a number of hidden files on the stick, including a Spotlight index and Trash folder. Example from the terminal for a USB stick "Untitled": $ ls -a…
j-g-faustus
  • 1,653
153
votes
16 answers

How to disable command-Q for Quit?

Is there any way to disable command+Q for quitting apps? I tried adding this menuitem to the "Keyboard Shortcuts" preference pane (as suggested here), and remapping it to command+option+Q (slightly harder to hit), and the menu item changed to show…
Ken
  • 1,573
153
votes
3 answers

Installing .pkg with terminal ?

Is it possible to install a .pkg using a terminal ? (I wanted to install an app through ssh).
Matthieu Riegler
  • 21,486
  • 11
  • 59
  • 97
152
votes
9 answers

Is there a way to convert audio files in Mac OS X or the command line without using iTunes?

Now, I know I can use iTunes to convert music. But it's quite a pain.. All I'm asking is: Is there anything built into OS X or UNIX for converting files? Right now I simply want to convert .mp4 to .mp3..
151
votes
3 answers

How to switch or close the new split Terminal pane?

I stumbled across the CMD-D hot key which splits the Terminal into 2 panes. But I can't find documentation anywhere on how to close the new pane or even switch the focus to it so I can use it. What are the other commands?
151
votes
8 answers

Change location of macOS Notification Center alerts?

Is it possible to change where macOS Notification Center alerts appear on the screen? They currently appear at the top right of the screen with the menu bar: Alerts appearing in the top right tend to cover up work I'm doing more often than not.…
151
votes
13 answers

Remember window sizes and placement when unplugging and replugging second monitor

Here’s something that sucks: Plug in external monitor to laptop (Mac OS X Leopard in my case). Arrange your windows to have the IDE on one screen and browser on another. (Etc etc. Resize, rearrange, fuss, fuss, fuss.) Unplug monitor to run to a…
dreeves
  • 1,638
  • 2
  • 11
  • 9
150
votes
13 answers

Any nice, stable ways to keep a window 'Always on top' on the Mac?

I am looking for a stable way to keep any window 'always on top' on OSX. Afloat, an app that does that requires SIMBL/easySIMBL, which it seems is not very stable. Are there any better solutions? It's actually surprising that there is no native way…
Himanshu P
  • 3,432