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
A Technical I.T./DevOps Blog
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