Tech Tip: Find Directories Over a Certain Size

“The script prints those directories under a given path whose
size is above a certain threshold. It also allows you to exclude
directories that match a certain pattern from consideration. The
command accepts the following options:

* -d – Specifies the base directory to search.
* -t – Specifies the threshold in megabytes (eg 100 == 100MB).
* -x – Specifies the patterns to ignore (glob patterns).

“The following examples show how it can be used:”

Complete Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis