Generate a runnable Shell script based on input directory path and threshold to count disk usage of sub-items and output large items exceeding the threshold.
Copy
Based on the provided target directory path and disk usage threshold, output a complete Shell script that can run directly in a Linux terminal. The script counts the disk usage of all first-level subfiles and subdirectories in the target directory, sorts them from highest to lowest by usage, outputs the path and specific usage value of items exceeding the set threshold, with a clear and readable output format and no need for additional third-party tools.
Copy
Recommendation





Home
