Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #197581

Re: A command similar to "tree -sd" ?

From davidson <davidson@freevolt.org>
Newsgroups linux.debian.user
Subject Re: A command similar to "tree -sd" ?
Date 2018-07-13 13:30 +0200
Message-ID <wb4qS-3XG-3@gated-at.bofh.it> (permalink)
References <wb47x-3RE-39@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

A command similar to "tree -sd" ? Richard Owlett <rowlett@cloud85.net> - 2018-07-13 13:10 +0200
  Re: A command similar to "tree -sd" ? davidson <davidson@freevolt.org> - 2018-07-13 13:30 +0200
    Re: A command similar to "tree -sd" ? Richard Owlett <rowlett@cloud85.net> - 2018-07-13 13:50 +0200
  Re: A command similar to "tree -sd" ? Darac Marjal <mailinglist@darac.org.uk> - 2018-07-13 14:10 +0200
    YES! - was [Re: A command similar to "tree -sd" ?] Richard Owlett <rowlett@cloud85.net> - 2018-07-13 14:40 +0200
      Re: YES! - was [Re: A command similar to "tree -sd" ?] Cindy-Sue Causey <butterflybytes@gmail.com> - 2018-07-13 16:10 +0200
      Re: YES! - was [Re: A command similar to "tree -sd" ?] Richard Owlett <rowlett@cloud85.net> - 2018-07-13 22:40 +0200

csiph-web