How to Find the Total Size of a Directory in Linux

Posted by trendoceangd on Jul 9, 2022 7:10 AM EDT
TREND OCEANS; By Gagan Mishra
Mail this story
Print this story

At some point, you will be intrigued to know the total size of a current directory, or of any XYZ directory taking space on your disk, and it will be very crucial when you are running out of space, and want to delete a file that is consuming more space.

You may be trying to find the total size of a directory using the ls -shw command, but it won’t work here. So how do I determine the size of a directory in Linux using the command line?

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Debian, Fedora, Linux

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.