Difference between revisions of "Osx"
Line 20: | Line 20: | ||
and reboot. After reboot, sysctl vm.swapusage shows 0 and /private/var/vm/swapfile is empty. replace "unload" with "load" above to revert to default. | and reboot. After reboot, sysctl vm.swapusage shows 0 and /private/var/vm/swapfile is empty. replace "unload" with "load" above to revert to default. | ||
+ | |||
+ | == Make application default == | ||
+ | |||
+ | When trying to open video files, I noticed that it defaults to Quicktime, and I wanted it to default to VLC. With no obvious way to delete quicktime, I wasn't sure what to do. While I tried to setup "Always open with" and pick VLC, that didn't seem to work. In the end, I discovered you need to right click on the file then | ||
+ | |||
+ | Get Info -> Open With (Choose VLC) and then click "Change all..." |
Revision as of 19:30, 4 September 2012
Shortcuts
- Hold down "d" on boot to do a hardware test
- Hold down alt/option on boot to boot into safe mode
- Hold down apple + "s" on boot for single user mode
- Hold down apple + "v" on boot for verbose mode
- Command + Control + Power also brings one into single user mode
dynamic_paging
I noticed on my MacBook Air that after a few weeks I would run out of diskspace, without downloading anything, forcing me to reboot. Before I did, I checked /tmp and nothing looked large enough. Bryan F from [yh] pointed out "man dynamic_pager"
$ ls -la /private/var/vm/swapfile $ sysctl vm.swapusage
I noticed gigs worth of files! At your own risk:
$ sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
and reboot. After reboot, sysctl vm.swapusage shows 0 and /private/var/vm/swapfile is empty. replace "unload" with "load" above to revert to default.
Make application default
When trying to open video files, I noticed that it defaults to Quicktime, and I wanted it to default to VLC. With no obvious way to delete quicktime, I wasn't sure what to do. While I tried to setup "Always open with" and pick VLC, that didn't seem to work. In the end, I discovered you need to right click on the file then
Get Info -> Open With (Choose VLC) and then click "Change all..."