How To Install a .pkg file from the Command Line on MacOSX

Author: , August 12th, 2016

sudo /usr/sbin/installer -pkg /path/to/yourFile.pkg -target /

How To Eject a Volume from the Terminal Command Line in MacOSX

Author: , December 8th, 2015

As always, YMMV… 1 2 3 4 5 6 7 8 9 #!/bin/bash # Usage: eject [fullpath to mount point] DISK="${1:-/Volumes/YourUSBFlashDriveName/}" df -h "$DISK" > /dev/null 2>&1 if [ $? -eq 0 ]; then    diskutil unmountDIsk `diskutil list "$DISK" | grep ^/dev/` else    echo Volume $DISK is not mounted…skipping. fi #!/bin/bash # Usage: […]

How To Disable Dock Icon Bounce For MacOSX Terminal

Author: , June 15th, 2015

1 2 defaults write com.apple.Terminal no-bouncing -bool TRUE killall Dock defaults write com.apple.Terminal no-bouncing -bool TRUE killall Dock

How To Show All Files in MacOSX Yosemite via Terminal

Author: , October 29th, 2014

SET THE DEFAULT TO SHOW Run this command in a Terminal window: defaults write com.apple.finder AppleShowAllFiles YES Relaunch Finder: Hold down the Option/ALT key on your keyboard, then right-click the Finder icon in the dock and select Relaunch. SET THE DEFAULT TO HIDE defaults write com.apple.finder AppleShowAllFiles NO then relaunch finder as above.

How To Show All Files in the MacOSX Finder

Author: , June 30th, 2012

In Terminal, run the following command: defaults write com.apple.Finder AppleShowAllFiles YES To make the command take effect, you need to restart the Finder. One way to do this is to hold down the Option key, then click and hold on the Finder icon in the Dock. When the contextual menu appears, select Relaunch and the […]

How To Keep SSH Alive In MacOSX Lion Terminal Sessions

Author: , May 24th, 2012

Apple’s 10.7 Lion, is NOT my favorite iteration of MacOSX. They continue to make the OS more Windows-like, which means they have started down that slippery slope… In Snow Leopard, I could have my ssh sessions running for weeks. In Lion, the ssh sessions time out with nasty errors, including “Write failed: Broken pipe”. After […]

How To Speed Up Safari Page Display

Author: , March 16th, 2012

I just found this neat trick to speed up Safari by reducing the ‘Render Before Display’ time: 1. Quit Safari. 2. Launch Terminal.app 3. Type in the line below and then press {enter}: defaults write com.apple.Safari WebKitInitialTimedLayoutDelay 0.20 4. Quit Terminal and restart Safari

How To Open A Root Finder Window In MacOSX Snow Leopard

Author: , August 14th, 2011

In the Terminal application, type the following: sudo /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder Then, click on an empty spot on your desktop – NOT in an existing Finder window. Now, type Command-N or select New Finder Window from the File menu. To end your root Finder session, type ^C in the Terminal window. Notes: You won’t be able to […]

How To Fix A Broken Login To Mac App Store

Author: , February 2nd, 2011

rm ~/Library/Preferences/com.apple.appstore.plist rm ~/Library/Preferences/com.apple.storeagent.plist rm -rf ~/Library/Preferences/ByHost/*