1
rated 0 times
[
1]
[
0]
/ answers: 1 / hits: 1603
/ 2 Years ago, tue, april 19, 2022, 1:58:34
What command can I execute to check the directories inside a folder and if the total size of the directory is smaller than 30MB, delete it? I played around with the find
command trying to move files based in the size but it didn't work properly.
I was using (for 1mb):
find . -size +102400k -exec mv DIRECTORY
find . -size -102400k -exec mv DIRECTORY
More From » command-line