MacOS TROUBLESHOOTING
1.
REHAN 27.01.2026 / 14:57
MacOS TROUBLESHOOTING & REPAIR COMMANDS ๐๐ ๏ธ
Having issues with your Mac? These essential Terminal commands help you diagnose system problems, repair disks, fix network issues, check battery health, and resolve app crashes like a pro. Perfect for MacBook users, IT students, and technicians.
๐งช SYSTEM DIAGNOSTICS
Copy code
Bash
system_profiler SPSoftwareDataType
log show --predicate 'eventMessage contains "error"' --last 1h
๐งน DISK & FILE SYSTEM REPAIR
Copy code
Bash
diskutil verifyDisk disk0
diskutil repairDisk disk0
diskutil verifyVolume /
diskutil repairVolume /
๐น (Use Recovery Mode โ + R if disk is in use)
๐ง MEMORY & CPU TROUBLESHOOTING
Copy code
Bash
top
vm_stat
ps aux | sort -nrk 3 | head # High CPU usage
๐ NETWORK TROUBLESHOOTING
Copy code
Bash
ping -c 5 google.com
networksetup -listallhardwareports
sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder
๐ BATTERY HEALTH CHECK
Copy code
Bash
pmset -g batt
system_profiler SPPowerDataType
๐ RESET SERVICES (Common Fixes)
Copy code
Bash
sudo killall Finder
sudo killall Dock
sudo killall SystemUIServer
๐งฏ SAFE MODE & RECOVERY
Copy code
Bash
nvram -p # Check NVRAM
csrutil status # SIP status (Recovery Mode)
๐งฐ APP CRASH INVESTIGATION
Copy code
Bash
ls ~/Library/Logs/DiagnosticReports
open ~/Library/Logs/DiagnosticReports
โ ๏ธ Important Notes
Use sudo carefully
Backup before disk repairs
Some commands require Recovery Mode
Save this and keep it handy for quick macOS fixes! ๐ปโจ
Follow ANIK Digital and Information Technology for more practical tech tips and guides.
#macOS #TerminalCommands
#MacTroubleshooting
URL:
https://pakwap.com/public/index.php/topics/206