Quantcast
Channel: Fast way to display the size of each subdirectory in a directory - Unix & Linux Stack Exchange
Browsing all 10 articles
Browse latest View live

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 Article



Answer 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 Article

Answer 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 Article

Answer by kumarswamy for Fast way to display the size of each subdirectory in...

A simple command is ls | xargs du -sh

View Article

Image may be NSFW.
Clik here to view.

Answer 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 Article


Answer 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 Article

Answer 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 Article

Answer 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 Article


Answer 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 Article


Fast 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
Browsing all 10 articles
Browse latest View live




Latest Images