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