macOS
macOS (previously Mac OS X and later OS X) is a proprietary graphical operating system developed and marketed by Apple Inc. since 2001.
FileVault
Validate key
sudo fdesetup validaterecovery
iCloud Drive
Create iCloud Drive symbolic link to Home
ln -s "/Users/$USER/Library/Mobile Documents/com~apple~CloudDocs" iCloud
Security & Privacy
System Integrity Protection Temporarily
Disable System Integrity Protection Temporarily
To disable SIP, do the following:
- Restart your computer in Recovery mode.
- Launch Terminal from the Utilities menu.
- Run the command
csrutil disable
. - Restart your computer.
Enable System Integrity Protection
To reenable SIP, do the following:
- Restart your computer in Recovery mode.
- Launch Terminal from the Utilities menu.
- Run the command
csrutil enable
. - Restart your computer.
Reset and Remove Applications in Location Services
-
Start terminal and then sudo to a root shell
sudo -s
-
Go to
/var/db/locationd
cd /var/db/locationd
-
Convert clients.plist to xml (editable format)
plutil -convert xml1 clients.plist
-
Edit the clients.plist file and remove the application. Convert the
clients.plist
file back to binaryplutil -convert binary1 clients.plist
-
Restart
locationd
killall locationd
Time Machine
Delete Time Machine local snapshots
for snapshot in $(tmutil listlocalsnapshotdates | grep -v :); do sudo tmutil deletelocalsnapshots $snapshot; done