Questions tagged [mac-osx]

Mac OS X is an operating system from Apple Inc. It was the successor to Mac OS 9 and here the 'X' means 10. Mac OS X is based upon the NeXTSTEP and OpenStep OSes developed in the 1980s and 1990s by NeXT Inc., which Apple purchased in 1996.

Mac OS X consists of a Mach/BSD-based kernel, userland primarily based on FreeBSD, and additional frameworks (written in C, C++ and Objective-C) providing user interface and application-level services.

2425 questions
39
votes
6 answers

How to reclaim all/most free space from a sparsebundle on OS X

Is there a possibility to "defragmentize" a sparse bundle image and reclaim (most) of the free space? Here is the background: I am using sparse bundles and every now and then I want to reclaim space from them so I run: hdiutil compact…
user4854
  • 393
  • 1
  • 3
  • 5
37
votes
6 answers

How to stop nginx on Mac OS X

I've installed and configured nginx server on my Mac from MacPorts sudo port install nginx Followed the recommendation from the port installation console and created the launchd startup item for nginx, then started the server. Renamed…
Alex Kaushovik
  • 543
  • 1
  • 4
  • 10
36
votes
3 answers

How is DNS lookup configured for OSX Mountain Lion?

If I cat my resolv.conf, I see this message: # # Mac OS X Notice # # This file is not used by the host name and address resolution # or the DNS query routing mechanisms used by most processes on # this Mac OS X system. # # This file is automatically…
Ben Flynn
  • 495
  • 1
  • 4
  • 8
36
votes
3 answers

OS X determine which application is accessing a HDD and preventing ejection?

I'm running OS X 10.6 Server, and I want to eject my external drive so I can do some disk maintenance such as defraging it. However when I try to eject the drive it fails saying the disk is in use. I can force eject it but that could cause…
jamone
  • 514
  • 1
  • 5
  • 10
34
votes
4 answers

How do I add a group in Mac OS X 10.6?

Surprisingly, it's been tough for me to find the command(s) to do this. Does anyone know how to add a group? Thanks! Or do something like this: # create the MySQL group dscl . create /Groups/mysql # give it some group id dscl . create…
Tony
  • 1,281
  • 4
  • 17
  • 23
33
votes
1 answer

How to tell if I'm in MacVim in .vimrc

In my .vimrc, I want to check if I'm in MacVim vs. regular vim so I can optionally set some MacVim-specific settings, which should not be applied to regular vim. How do I do this?
Andy White
  • 1,171
  • 1
  • 14
  • 20
32
votes
6 answers

What are .DS_Store files and why does OSX leave them on Windows shares?

Whenever I access windows shares from OSX 10.5 it leaves .DS_Store files on the remote filesystem. What are they used for, and are they necessary, and can they be prevented from being created?
duckworth
  • 700
  • 3
  • 10
  • 12
32
votes
4 answers

Use an environment variable in a launchd script

I'm curious if it's possible to specify an envrionment variable in the ProgramArguments portion of a luanchd script on Mac OS X Leopard.
matpie
  • 453
  • 1
  • 5
  • 9
31
votes
3 answers

WinSCP alternative for OS X (that supports sudo and without virtualizing WinSCP)

I recently switched from administering my systems using Windows to OS X. I've found really nice alternatives to damn near everything I used previously, however I have not found a nice GUI editor (sometimes VIM just hurts my face for long scripting…
grufftech
  • 6,760
  • 4
  • 37
  • 37
30
votes
5 answers

Converting UTF-8 NFD filenames to UTF-8 NFC, in either rsync or afpd

I have a home file server running FreeNAS 8. A few days ago I used rsync to upload my entire iTunes library from Mac so that I could load my library over the network instead of off a slow USB drive. This mostly worked, and iTunes runs much better…
Twipped
  • 643
  • 2
  • 7
  • 10
30
votes
8 answers

How can I use rsync to duplicate a directory tree, creating hardlinks to files?

From time to time, I have to perform several large migration changes on data files on my server, and I'm looking for a good way to do this. I was thinking about using rsync to duplicate my directory structure starting at the root data folder,…
29
votes
7 answers

Speed up SFTP uploads on high latency network?

I'm trying to transfer a set of large files internationally using SFTP, but I am finding my international partner can't get upload speeds above ~50k despite very good connections on either side. We can get multiple connections uploading at this…
nick_eu
  • 391
  • 1
  • 3
  • 5
28
votes
7 answers

Where are the default ulimits specified on OS X (10.5)?

The default nofile limit for OS X user accounts seems to be about 256 file descriptors these days. I'm trying to test some software that needs a lot more connections than that open at once. On a typical Debian box running the pam limits module, I'd…
archaelus
  • 383
  • 1
  • 4
  • 5
27
votes
3 answers

OpenSSH disable ControlMaster for given hostname

I am using OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb 2011 with Mac OS X Snow Leopard. I have ControlMaster feature configured to maintain persistent connections. My ~/.ssh/config have the following: Host * ControlPath /ms/%r@%h:%p ControlMaster auto …
Andrey Chernih
  • 383
  • 1
  • 3
  • 6
27
votes
6 answers

A better "top" command for Mac OS X?

The top command on OS X is pretty crappy.. The one included with most Linux distros allows you to change the sort-by column using < and >, there is a coloured mode (by pressing the z key), and a bunch of other useful options. Is there a replacement…
dbr
  • 1,568
  • 3
  • 16
  • 18