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


Groups > linux.debian.user > #197578 > unrolled thread

A command similar to "tree -sd" ?

Started byRichard Owlett <rowlett@cloud85.net>
First post2018-07-13 13:10 +0200
Last post2018-07-13 22:40 +0200
Articles 7 — 4 participants

Back to article view | Back to linux.debian.user


Contents

  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

#197578 — A command similar to "tree -sd" ?

FromRichard Owlett <rowlett@cloud85.net>
Date2018-07-13 13:10 +0200
SubjectA command similar to "tree -sd" ?
Message-ID<wb47x-3RE-39@gated-at.bofh.it>
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.

"tree -sd" gives the visual shape desired.

Suggestions?
TIA

[toc] | [next] | [standalone]


#197581

Fromdavidson <davidson@freevolt.org>
Date2018-07-13 13:30 +0200
Message-ID<wb4qS-3XG-3@gated-at.bofh.it>
In reply to#197578
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
>
>

[toc] | [prev] | [next] | [standalone]


#197583

FromRichard Owlett <rowlett@cloud85.net>
Date2018-07-13 13:50 +0200
Message-ID<wb4Kd-43A-5@gated-at.bofh.it>
In reply to#197581
On 07/13/2018 06:26 AM, davidson wrote:
> 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?

"Yes" and "No" <chuckle>
It was the "Implies -s." in the section you quoted that hinted that 
"tree -sd" might be what I wanted.
I just tried "--du". It prints the detail entry for each file.
I wish to print only directory level.

However the information I want is displayed - on a terminal it is 
colored blue. Unfortunately when saved to a file it is all "black on 
white". Perhaps piping it somewhere will allow me to parse it in a 
desired fashion.

Thank you.


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

[toc] | [prev] | [next] | [standalone]


#197586

FromDarac Marjal <mailinglist@darac.org.uk>
Date2018-07-13 14:10 +0200
Message-ID<wb53z-4p3-1@gated-at.bofh.it>
In reply to#197578

[Multipart message — attachments visible in raw view] — view raw

On Fri, Jul 13, 2018 at 06:07:04AM -0500, 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.

Try the following:
1. Install duc-nox
2. Build the DUC database with 'sudo duc-nox index -pH /'
   (-p = progress, -H counts hardlinks only once)
3. Display the tree with 'duc-nox ls -R /path/to/dir'

-- 
For more information, please reread.

[toc] | [prev] | [next] | [standalone]


#197588 — YES! - was [Re: A command similar to "tree -sd" ?]

FromRichard Owlett <rowlett@cloud85.net>
Date2018-07-13 14:40 +0200
SubjectYES! - was [Re: A command similar to "tree -sd" ?]
Message-ID<wb5wC-4xK-11@gated-at.bofh.it>
In reply to#197586
On 07/13/2018 07:08 AM, Darac Marjal wrote:
> On Fri, Jul 13, 2018 at 06:07:04AM -0500, 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.
> 
> Try the following:
> 1. Install duc-nox
> 2. Build the DUC database with 'sudo duc-nox index -pH /'
>    (-p = progress, -H counts hardlinks only once)
> 3. Display the tree with 'duc-nox ls -R /path/to/dir'
> 

Yes! Thank you.
I tried it. I liked it.
I'll explore it more this afternoon.

[toc] | [prev] | [next] | [standalone]


#197592 — Re: YES! - was [Re: A command similar to "tree -sd" ?]

FromCindy-Sue Causey <butterflybytes@gmail.com>
Date2018-07-13 16:10 +0200
SubjectRe: YES! - was [Re: A command similar to "tree -sd" ?]
Message-ID<wb6VH-5tg-3@gated-at.bofh.it>
In reply to#197588
On 7/13/18, Richard Owlett <rowlett@cloud85.net> wrote:
> On 07/13/2018 07:08 AM, Darac Marjal wrote:
>> On Fri, Jul 13, 2018 at 06:07:04AM -0500, 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.
>>
>> Try the following:
>> 1. Install duc-nox
>> 2. Build the DUC database with 'sudo duc-nox index -pH /'
>>    (-p = progress, -H counts hardlinks only once)
>> 3. Display the tree with 'duc-nox ls -R /path/to/dir'
>>
>
> Yes! Thank you.
> I tried it. I liked it.
> I'll explore it more this afternoon.


I tried it, too. duc-nox ui /path/to/dir (k/t man duc-nox) gets you
something interactive that you can navigate through by using the arrow
keys..

the "ls -R" path looks very *cognitively friendly* for comparing
multiple directories for changes. YES, I've tried other methods, but
primarily "diff" comes to mind. Stumbled around while trying to use
them because the information wasn't, I don't know how to express it,
it just wasn't cogitatin'. This one looks like what *my brain*
visually needed for that task. :)

Duc-nox... well, it's probably more the terminal's default itself...
honors the "duc-nox ls -R /var/log > ducNikonPics2018" [print to file]
deal, too. That's the bonus feature that will REALLY help me.
#ThankYou from behind this keyboard, too! :)

Cindy :)
-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with duct tape *

[toc] | [prev] | [next] | [standalone]


#197611 — Re: YES! - was [Re: A command similar to "tree -sd" ?]

FromRichard Owlett <rowlett@cloud85.net>
Date2018-07-13 22:40 +0200
SubjectRe: YES! - was [Re: A command similar to "tree -sd" ?]
Message-ID<wbd17-Eh-1@gated-at.bofh.it>
In reply to#197588
On 07/13/2018 07:29 AM, Richard Owlett wrote:
> On 07/13/2018 07:08 AM, Darac Marjal wrote:
>> On Fri, Jul 13, 2018 at 06:07:04AM -0500, 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.
>>
>> Try the following:
>> 1. Install duc-nox
>> 2. Build the DUC database with 'sudo duc-nox index -pH /'
>>    (-p = progress, -H counts hardlinks only once)
>> 3. Display the tree with 'duc-nox ls -R /path/to/dir'
>>
> 
> Yes! Thank you.
> I tried it. I liked it.
> I'll explore it more this afternoon.

I've begun exploration.
It is so close to what I want that "I can taste it" ;/
The primary thing I needed to add to your example was "--dirs-only".

My current problem is a perverse combination "length of directory names" 
and choices program designers faced due to "finite screen width".

I get some silly/inane results/errors when attempting to specify a 
maximum directory depth. How do I specify a depth of 2 or 3? "There is 
no joy in Mudville, I've struck out searching for examples." {apologies 
to Ernest Lawrence ;}

Guidance please ;/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web