Answer by Olivier Dulac for Fast way to display the size of each subdirectory...
You may try this:This solution assumes a lots:that your ultimate goal is to quickly determine the biggest directory (NOT counting its subdirs) to for exemple find quickly where you should do some...
View ArticleAnswer by Andy K for Fast way to display the size of each subdirectory in a...
As others have said, it is just a slow process. We have multi user machines and the worst is when a disk runs low and several people start du at the same time. So, we use a cached view of the disk...
View ArticleAnswer by Kusalananda for Fast way to display the size of each subdirectory...
If running du on a particular directory takes 20 seconds, then that is what it will take to run du on that directory. You can't really do it quicker.What you can do quicker is to eliminate the manual...
View ArticleAnswer by kumarswamy for Fast way to display the size of each subdirectory in...
A simple command is ls | xargs du -sh
View ArticleAnswer by Rafael Corrêa Gomes for Fast way to display the size of each...
You can list the top 10 folders by size using this command below.find $(pwd) -type d -print0 | xargs -0 du | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
View ArticleAnswer by Partha Pratim Sarkar for Fast way to display the size of each...
Use the following command, it will display quickly the top 10 directories according to the size occupied in the system:du -hsx /* | sort -rh | head -10Output e.g.[root@x ~]# du -hxs /* | sort -rh |...
View ArticleAnswer by Ankit Balyan for Fast way to display the size of each subdirectory...
Use package ncdu. you can install it by sudo apt-get install ncdu.on server you can use it with options ncdu -q -x (Quiet Mode and Omit mounted directories).Ncdu vs du/dfThe interface of ncdu is built...
View ArticleAnswer by user147505 for Fast way to display the size of each subdirectory in...
All folders occupy the same amount of space, namely 4096 bytes. You don't want to know the size of the folders, but the size of what's in them. And this demands counting, which in turn demands time.du...
View ArticleAnswer by Sundeep for Fast way to display the size of each subdirectory in a...
Sample directory$ ls -aF./ ../ .asd/ folder1/ folder2/ list t1 t2 xyz/To find sizes only for folders, excluding hidden folders:$ find -type d -name '[!.]*' -exec du -sh {} +4.0K ./folder14.0K...
View ArticleFast way to display the size of each subdirectory in a directory
I want to check which directories take most disk space, quickly. I tried du -sh subdir but it took more than 20 seconds on bigger directories.I'm not sure how to display the size of all the...
View Article
More Pages to Explore .....