I want to find the folders which sizes are over 1GB and then if they are over then I want to erase them.
I found some commands like
find /some/path -type d -size +1G -exec ls {} \;
or
du -h /some/path | grep ^[0-9.]*G
or (over 600M)
du -h /some/path/ | grep ^[6-9][0-9][0-9][0-9.]*M | sort
But these two commands are not really helping to me because the find command is not finding any folders although there are folders over 1GB but the linux thinks they are some small KB. Is there any command to achieve that?