Macintosh Tips
,
09. augusti 2011,
kent,
Bash Alias Commands
- View them all: $ alias
- Place them into the file ~/.profile to use them in all terminal windows
- Some examples:
- Xcode from command line:
- Define: alias xcode=/Developer/Applications/Xcode.app/Contents/MacOS
- Use: $ xcode FILE
- TextEdit from command line:
- Define: alias te=/Applications/TextEdit.app/Contents/MacOS/TextEdit
- Use: $ te FILE
Booting
- Boot in verbose mode as default: $ sudo nvram boot-args="-v"
Disk Management
- Change partition size: sudo diskutil resizeVolume
Mail
- Set mail.app to prefer text mail: $ defaults write com.apple.mail PreferPlainText -bool TRUE
Open files with default application
Secure erase (remove)
- $ srm [OPTION]... FILE...
Tip of the day:
Backup — Have one or more databases? Keep separate backups.
— http://en.wikipedia.org/wiki/Backup