-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathcheck-storage.sh
More file actions
executable file
·33 lines (25 loc) · 959 Bytes
/
Copy pathcheck-storage.sh
File metadata and controls
executable file
·33 lines (25 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
echo "🔍 Checking System Data Storage..."
echo ""
echo "📱 iOS Backups:"
du -sh ~/Library/Application\ Support/MobileSync/Backup 2>/dev/null || echo "None found"
echo ""
echo "🐳 Docker Storage:"
docker system df 2>/dev/null || echo "Docker not installed"
echo ""
echo "⏰ Time Machine Local Snapshots:"
tmutil listlocalsnapshots / 2>/dev/null | wc -l | xargs echo "Snapshots count:"
echo ""
echo "📧 Mail Data:"
du -sh ~/Library/Mail 2>/dev/null || echo "None found"
du -sh ~/Library/Mail\ Downloads 2>/dev/null || echo "None found"
echo ""
echo "💿 macOS Installers:"
du -sh /Applications/Install\ macOS*.app 2>/dev/null || echo "None found"
du -sh ~/Library/Updates 2>/dev/null || echo "None found"
echo ""
echo "🎵 Spotify Cache:"
du -sh ~/Library/Caches/com.spotify.client 2>/dev/null || echo "None found"
echo ""
echo "📦 Largest directories in ~/Library:"
du -sh ~/Library/* 2>/dev/null | sort -hr | head -10