macOS Shortcuts, Terminal Commands, MDM Enrolment, FileVault & System Diagnostics
/Applications/Utilities/Activity Monitor.appmacOS equivalent of Task Manager. Monitor CPU spikes, inspect memory pressure graphs, locate unresponsive PIDs, send force kill signals (`SIGKILL`), and audit process network sockets.
/Applications/Utilities/Console.appCentralized log reader. Stream live unified system logs, filter events by subsystem, inspect application crash reports (`/Library/Logs/DiagnosticReports`), and review spin logs.
/Applications/Utilities/Disk Utility.appManages APFS containers, volume partitions, and external drives. Run **First Aid** (`fsck_apfs`) to scan and repair file system corruption or format external storage drives.
/Applications/Utilities/Keychain Access.appStores saved Wi-Fi passwords, app passwords, enterprise S/MIME certificates, and SSL keys. Used by admins to inspect trusted Root CAs and clear corrupt login keychains.
Apple Menu → System Settings → General → About → System ReportGenerates complete hardware/software asset reports: Serial number, Apple Silicon processor chip details, battery cycle count, installed kernel extensions, and network MAC addresses.
networksetup -listallhardwareports networksetup -getwebproxy Wi-Fi sudo networksetup -setdhcp EthernetLists physical network interface ports and MAC addresses, inspects configured corporate proxies, and resets network interfaces to dynamic DHCP configuration.
dscl . -read /Users/username sudo dscl . -create /Users/adminuser sudo dscl . -passwd /Users/username newpass`dscl` (Directory Service Command Line) directly manages local macOS user accounts, groups, home directories, and user passwords without a GUI.
softwareupdate -l sudo softwareupdate -i -a --restart`softwareupdate -l` lists all available macOS OS patches and security updates. `-i -a --restart` installs all updates and reboots if required.
spctl --status spctl --assess --type execute /Applications/App.app sudo spctl --master-disableManages Gatekeeper security rules. Verifies whether an application is signed and notarized by Apple before allowing execution.
chflags hidden ~/Documents/Private chflags nohidden ~/Library sudo chflags uchg file.confModifies macOS special file flags. `uchg` sets a system immutable flag, locking a file so it cannot be edited or deleted even by root until `-uchg` is run.
brew update && brew upgrade brew install --cask google-chrome brew listDe facto package manager for macOS. Installs CLI tools and GUI applications (`--cask`) silently across IT enterprise environments.
profiles status -type enrollment sudo profiles renew -type enrollment profiles list`profiles status` displays active MDM enrollment state and Apple Automated Device Enrollment (ADE / ABM) details. `renew` forces an immediate re-sync with MDM (Intune / Jamf).
fdesetup status sudo fdesetup enable sudo fdesetup changerecovery -personalManages FileVault 2 XTS-AES 256-bit volume encryption. Verifies status and rotates personal recovery keys for escrow to Intune / Jamf.
csrutil statusInspects System Integrity Protection (SIP) security status. Prevents unauthorized modification of protected system files. Must be managed via macOS Recovery mode.
sudo systemsetup -setremotelogin on sudo systemsetup -getsleep sudo systemsetup -setnetworktimeserver time.apple.comConfigures system-level hardware preferences, enables SSH remote terminal login, and configures NTP network time servers.
mdutil -s / sudo mdutil -E / sudo mdutil -i off /`mdutil -s` checks Spotlight status. `mdutil -E` erases and forces a complete rebuild of the Spotlight search index across the root volume to fix broken searches.
log stream --predicate 'process == "sudo"' log show --predicate 'eventMessage contains "failed"' --last 1hQueries the macOS Unified Logging system directly via CLI. Filters live log streams by process name, subsystem, or message keywords over defined timeframes.
tccutil reset Microphone tccutil reset ScreenCapture com.microsoft.teamsResets Transparency, Consent, and Control (TCC) privacy prompts for specific services (Microphone, Camera, Screen Recording) when applications experience access blocks.
defaults read com.apple.finder AppleShowAllFiles defaults write com.apple.dock autohide -bool true && killall DockReads, writes, and modifies system and application `.plist` preference files directly from the command line.
launchctl list | grep company sudo launchctl load -w /Library/LaunchDaemons/com.agent.plist sudo launchctl unload -w /Library/LaunchDaemons/com.agent.plistInterface to `launchd` (macOS init process). Controls background system services (LaunchDaemons) and user-session services (LaunchAgents).