What Is My Build Number?
I have been known to occasionally ask what build number of Mac OS X that someone is using. The sw_vers command can be used to obtain this. Simply run: sw_vers And the BuildVersion will be listed. Or just to get the BuildVersion: sw_vers | grep BuildVersion Or to just get the number (useful in scripts [...]
In: Mac OS X, Mass Deployment · Tagged with: BuildVersion, Command line, cut, grep, Mac OS X, script
Using the cut Command
A number of commands available for finding positions that you want in a line and extracting only a certain amount of text can be pretty cumbersome in terms of learning curve. This isn’t to say that once you get the hang of them that they’re terribly complicated but it can take a little while to [...]
In: Mac OS X, Mac OS X Server, Mac Security, Unix · Tagged with: awk, character position, cut, find data, grep, line match, Mac OS X, pattern match, regex, sed
The Cut, Copy & Paste Daemon in OS X
Ever seen com.apple.pboard in a launchctl list? Â Wondered what it did? Â This is the infamous clipboard (aka – pasteboard, or on the iPhone the NSPasteboard server). Â If you unload the pboard entry in launchctl then you will no longer be able to cut, copy and paste. Â pboard relies on the existence of and the accessibility [...]
In: Mac OS X · Tagged with: broken, com.apple.com, copy, cut, no paste, paste, pboard, troubleshooting
April Fools – Trash Rather than Cut
You can set the cut function of the Finder to move items into the trash rather than into the clipboard: defaults write com.apple.Finder AllowCutForItems true It’s not the nicest of jokes to play on people though… So to undo it: defaults write com.apple.Finder AllowCutForItems false Happy April Fools Day
In: Mac OS X · Tagged with: AllowCutForItems, cut, defaults write, paste, trash


