Skip to content

Instantly share code, notes, and snippets.

@startergo
Created September 9, 2023 20:25
Show Gist options
  • Save startergo/7ffb6cf34e49b8ec35c99dc21eab1c2d to your computer and use it in GitHub Desktop.
Save startergo/7ffb6cf34e49b8ec35c99dc21eab1c2d to your computer and use it in GitHub Desktop.
How to find large files on Mac
  • To find files larger than 100 MB with Terminal in Volume named Mojave type:
sudo find / -type f -size +100000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }’ > large_files.txt
  • To remove files examine the file large_files.txt , and type:
rm -rF 
  • And copy-paste any path from the results: terminal-search-for-large-files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment