Re: A command similar to "tree -sd" ?
On Fri, 13 Jul 2018, Richard Owlett wrote:
While pursuing a problem I found the tree command useful.
Not having used it recently I re-read the man page I got ideas related to a
*TOTALLY UNRELATED* question.
For the second question it would be useful to have directory output in tree
format showing the size on disk of that directory and all sub-directories
under it.
Including regular files?
from http://mama.indstate.edu/users/ice/tree/tree.1.html , in the
"FILE OPTIONS" section:
| --du
| For each directory report its size as the accumulation of sizes
| of all its files and sub-directories (and their files, and so
| on). The total amount of used space is also given in the final
| report (like the 'du -c' command.) This option requires tree to
| read the entire directory tree before emitting it, see BUGS AND
| NOTES below. Implies -s.
(I don't have this program installed, and so I make no guarantees
regarding the helpfulness of this excerpt. I'm just browsing
documentation.)
"tree -sd" gives the visual shape desired.
Suggestions?
Good luck.
TIA
Reply to: