I have a directory(mount point) of size 9T, and I would like to get each directory size, especially the once which has consumed more space. For this I am using below command and pushing result into a txt file from bash script.
du -hsx * | sort -rh | head -10
Which is taking more time than i expected, Even after several hours i am not able to get the result in multiple occasion.
I am trying this over a network and using mobgar VPN connection.
Anything that can be improved here !
Asked by Sachin
(27 rep)
Feb 1, 2021, 05:08 PM
Last activity: Aug 8, 2025, 02:04 PM
Last activity: Aug 8, 2025, 02:04 PM