Predictive Hacks

How to get the Size of the Folders

We will provide an example of how you can get the size of each folder (known also as directories) in Linux. If you use Windows, then you can download the Ubuntu App and work with it. If you use the Ubuntu App and you want to mount your C drive the command is:

$ cd /mnt/c

If I want to see the used space and the free space of my system I can do it with the following command:

df -h

Now, if I want to get the size of each folder within one folder, I can type:

du -hs * | sort -h -r

Share This Post

Share on facebook
Share on linkedin
Share on twitter
Share on email

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Python

Image Captioning with HuggingFace

Image captioning with AI is a fascinating application of artificial intelligence (AI) that involves generating textual descriptions for images automatically.