Friday, 27 April 2018

bash - Unix command to list all directories larger than 10mb


Is this possible, and what would the command be?



Answer



du is the easiest way. Grab the directories of interest with perl.


du -m . | perl -ne '@l = split();print "@l\n" if $l[0]>=10'

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...