$ mdfind 'kMDItemFSSize > 200000000' | sed 's| |\\ |g' | xargs du -sch
# ^
# ~ 200MiB
Last active
February 22, 2022 00:55
-
-
Save vishaltelangre/6226f450ddaab6c9ef871d61d4668aae to your computer and use it in GitHub Desktop.
Locate big files on macOS #mdfind #find #bigfiles
find / -size +200000000c
to see file details
`
find / -size +200000000c -exec ls -lah {} ;
Read the man page.
`
man find
This helps you locate the folders with big size.
sudo du -sh * | grep -E "\dG" # here G means in GB, You can also use `M` for MB
You can start from root i.e /
, just cd /
and run above command.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reference: http://apple.stackexchange.com/a/227920/137909