Mac OS Tips
Introduction⚑
When I find myself searching for things more than once or twice I like to put them somewhere I can easily find them again rather than having to search for them constantly. This is where I'll put snippets of useful code and other commands, at least for now.™
Flush DNS⚑
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
Change the Admin password without the password⚑
This assumes you've already tried to reset using Apple ID
- Restart
- Press and hold
cmd + R
to start in recovery mode - Click on
Utilities
from the menu bar - Click on
Terminal
in the drop down menu - In the terminal, type:
resetpassword
and press "Enter" - Follow instructions to reset password
Factory Reset⚑
- Click on the
Apple Icon
(in the top left corner) - Click
Open System Preferences
- Select
Erase all contents and Settings
- Enter your password for the admin account
- Click
OK
- Click
Erase all Contents and Settings
Test Network Quality Directly From Terminal⚑
$ networkquality
==== SUMMARY ====
Upload capacity: 18.189 Mbps
Download capacity: 156.692 Mbps
Upload flows: 20
Download flows: 20
Responsiveness: Medium (235 RPM)
Caffeinate⚑
Keep Mac from sleeping for X seconds
$ caffeinate -u -t 15
Add ability to Quit Finder⚑
$ defaults write com.apple.finder QuitMenuItem -bool true
$ killall Finder
cmd + Q