How Do You Run The du Command without Recursion?

Problem scenario
You want to use the du command without it recursing through subdirectories. How do you do this?

Solution
Run this command:
du -h /path/to --max-depth=0

Leave a comment

Your email address will not be published. Required fields are marked *