Timeline for Fast way to display the size of each subdirectory in a directory
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 15, 2021 at 10:06 | comment | added | Kusalananda♦ | Ok, so there's two things: Your code does not ignore files. It also does not speed up the processing of any single directory. What it does do is to run du over all directories at once rather than doing the du manually on each. As a consequence of this, if there are hard links, these would only be counted once by your method, but would be counted twice by the method used by the user in the question. I would have expected you to say something about this and how the question possibly was not well specified. | |
| Feb 15, 2021 at 9:49 | comment | added | Partha Pratim Sarkar | I hope you understood and observed the difference between the following commands: du -hxs /* | sort -rh | head -10 and du -sh subdir Note: The output is self explanatory | |
| Nov 13, 2019 at 14:15 | review | Late answers | |||
| Nov 13, 2019 at 14:46 | |||||
| Nov 13, 2019 at 14:00 | review | First posts | |||
| Nov 13, 2019 at 14:17 | |||||
| Nov 13, 2019 at 13:55 | history | answered | Partha Pratim Sarkar | CC BY-SA 4.0 |