I know I can use du -h to output the total size of a directory. But when it contains other subdirectories, the output would be something like:
du -h /root/test . . . . 24K /root/test/1 64K /root/test/2 876K /root/test/3 1.1M /root/test/4 15M /root/test/5 17M /root/test I only want the last line because there are too many small directories in the /root/test directory. What can I do?
-sflag,du -sh /root/test