I\'m trying to write a script that will calculate a directory size and if the size is less than 10GB, and greater then 2GB do some action. Where do I need to mention my fol
To check the size of all of the directories within a directory, you can use:
du -h --max-depth=1