Mac OSX
- Reset Launch Services under Snow Leopard:(duplicate entries open with problem): http://www.thexlab.com/faqs/resetlaunchservices.html#Anchor-Reset-47857
- Mice click: Ctrl-click(right click), option-click(middle click).
- Ctrl-Command H: for highlighting in preview.
- change hostname: sudo scutil --set HostName larryx.local
- How to move dashboard widgets to desktop: http://macs.about.com/od/usingyourmac/qt/widgetondesktop.htm
- Switch to root:
sudo su -
- Count lines:
$ wc -l myFileNameWithExtension
- .DS_store: is a proprietary format hidden file created by Apple Inc.'s Mac OS X operating system to store custom attributes of a folder such as the position of icons or the choice of a background image.
- Set default bash editor:
// in .profile file write: VISUAL=emacs; export VISUAL EDITOR=emacs; export EDITOR
- Clean up App store cache for some issue:
open $(getconf DARWIN_USER_CACHE_DIR) # or open $TMPDIR../C/
- Marvericks Upgrades Issue: missing icon from dashboard:
- go to "~/Library/Application Support/Dock",you can find file *.db, delete it,and open a terminal window ,input "killall Dock",and all icons return
- workaround_the_iconservices_bug_mavericks.sh:
#!/bin/sh mkdir ${TMPDIR}/com.apple.IconServices
- n
- n
- n
- n
- n