This group of pages has my contributions to the Internet community.
This document lists the OS X-specific commands added or substantially tailored by Apple. The list is as of OS 10.2.6.
It does not list commands that are only relevant to developers (e.g., C compilers).
Please send additions/changes to me. I am Craig A. Finseth.
If you aren't familiar with Unix but can find a use for the above, you will probably want to be aware of these standard Unix commands:
Do the following from a Terminal command line for a csh or tcsh:
Or do this for a sh, ksh, or bash shell:
Note that the default Terminal shell for OS X 10.0 through 10.2 is tcsh, but they changed it to bash starting with 10.3.
Enable by entering this command from a Terminal command line:
defaults write com.apple.Safari IncludeDebugMenu 1
and disable by:
defaults write com.apple.Safari IncludeDebugMenu 0
defaults write NSGlobalDomain NSWindowResizeTime time
where time is a time in seconds from, say, .001 to 2.
defaults write /Library/Preferences/.GlobalPreferences NSUmask #
defaults write -g NSUmask -int #
The first sets the global, system default and the second sets the per-user default. The NSUmask may not be honored by software that has not been adapted for OS X. # is the umask (per umask(2)). It may, however, be in decimal instead of octal.
defaults write com.apple.Finder AppleShowAllFiles YES
and, to put it back:
defaults write com.apple.Finder AppleShowAllFiles NO
You'll have to restart the Finder (or log out and log back in) for this to take effect.
Last modified Wednesday, 2013-01-02T18:16:58-06:00.