Skip to content
Linux Server Support
  • Home
  • HowTo
    • Cpanel
    • Mail
    • MySQL
    • Nginx
    • Apache
    • CloudLinux
    • Ubuntu
    • WordPress
    • Magento
  • Tools
  • Hire Me

sort

How to sort the result of du -h command

August 30, 2022 by Yujin Boby

To sort the result of “du -h” command, you can use du -h –max-depth=1 | sort -h If you want to list files in current files also, you can use du -ah –max-depth=1 | sort -h If you want to display files in KB, you can use du -k –max-depth=1 | sort -n Back to … Read more

Categories Linux Tags du, sort Leave a comment
© 2026 Linux Server Support • Built with GeneratePress