Sunday, 16 January 2022

LINUX - HOW TO GET THE SIZE OF ALL FOLDERS PRESENT IN A DIRECTORY

 How to get the size of all folders present in a directory

We can get the size of all the directory in linux by running the command:- du -sh.

In my example, we can see the size of all the directory for the /etc/var directory.

Command:- du -sh /var/*


To get the size of the backup folder in the /var directory we can run the command:- du -sh /var/backups



Recommended Books:-


No comments:

Post a Comment