Skip to content

ez linux admin

making Linux a little easier

  • linux-basics/
  • cheat-sheets/
  • tech-terms/
  • about-us/
  • hacked?/

Tag: sort directory

Sort and find a directory size

The easiest and fastest way is: du -sh * But if you want to search recursively and display in order you need this one: du -h –max-depth=1 /home/ | sort -n -r And if you want even more depth try: du -s ./* | sort -n| cut -f 2-|xargs -i du -sh {} I recommend… Continue reading Sort and find a directory size

Published
Categorized as Linux Commands Tagged directory size, du linux, folder size, sort directory

Categories

Archives

Grab hosting for only $2.99/mo

web host

Partners

  • Centos
  • Linux
  • Redhat
  • SSLCA
  • Web Host Pro

Quality Websites

  • EZ Domain Name
  • Free Image Hosting
  • Internet Marketing
  • Web Host Pro
ez linux admin
Proudly powered by WordPress.