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:-
LINUX for Developers: Jumpstart Your Linux Programming Skills | First Edition | By Pearson Paperback
No comments:
Post a Comment