Skip to content

GNULinuxClub — Systems, Linux and Database Notes

  • Home
  • Linux Troubleshooting
  • Command Line
  • Database Notes
  • Engineering Notes
  • About

Space taken by a directory in Linux OS/Unix

How to Check Directory Size in Linux Using du

September 28, 2026October 26, 2009 by

Get the space taken by directory for Linux OS/Unix The following command can be used to get the space taken by directory du -sh <path of the directory> [gaurav@home]$ du -sh /var/www/ 1.5G    /var/www/

Categories Linux Troubleshooting Tags Space taken by a directory in Linux OS/Unix Leave a comment

Recent Posts

  • Who Thought Banks Would Move from Oracle to PostgreSQL?
  • How to Back Up an Oracle Schema with exp and expdp
  • Recover or Reinstall the GRUB Bootloader
  • Download Files from a Directory with wget
  • How to Check Directory Size in Linux Using du

Recent Comments

No comments to show.
© 2026 GNULinuxClub — Systems, Linux and Database Notes • Built with GeneratePress