Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

where to find the 'tree' command for Solaris?

1,131 views
Skip to first unread message

me@me

unread,
Mar 31, 1999, 3:00:00 AM3/31/99
to
hello,

anyone knows if there is a 'tree' command for solaris?
I have one on my Linux box, and I'd like to use it for Solaris also.
I searched few of the Solaris web pages, but I can't find it.
thanks,
me


Steve Bellenot

unread,
Mar 31, 1999, 3:00:00 AM3/31/99
to

What does "tree" do? I can't find "tree" on my linux box.

/usr/proc/bin/ptree prints out a process tree. One can use ls or
find to print out the file system tree.

--
bell...@math.fsu.edu http://www.math.fsu.edu/~bellenot (850)644-7189 (4053fax)


Philippe DUFOUR

unread,
Apr 1, 1999, 3:00:00 AM4/1/99
to
Hi,

Yes, there is a 'tree' command.

I work on Sun SPARCstation-5 on Solaris,
find the manual output of the "tree" command.

Phil.


tree(1) UNIX System V (APT) tree(1)

NAME
tree - Print the tree structure of a directory

SYNOPSIS
tree [ -HVac:dfglnpsvx ] [ top ]

DESCRIPTION
tree lists the "tree" structure of a directory. The format
of the listing depends on the options used. Redirection is
possible.

ARGUMENTS
By default the "tree" structure is displayed from the
current node. The default setting can be changed by speci-
fying a top node.

OPTIONS
-a Include non-directory entries in listing.

-c length Set maximal name length to length. This length
should be less then the default, truncation will
be done otherwise.

-d Sort tree with directories at the top.

-f Sort tree with files at the top.

-g Display "group" information of the tree entries.
Each entry is displayed in a string format. It
shows whether the entry is a directory or not, its
mode in the common 'rwx' format, the group iden-
tification and the amount of disk space the entry
occupies.
See CAVEAT and the -s option.

-H Type help information.

-l Displays the information of the tree entries in
'long' format. A 'd' is displayed to indicate
whether or not the entry is a directory, the mode
in 'rwx' format, the login name of the user and
the amount disk space that entry occupies.
See CAVEAT and the -s option.

-n Do not sort the tree.

-p Include files starting with a '.' (except "." &
"..").

-s Shows the -l or -g option in 'short' format. The
mode and the user of group identification are
displayed in numerical form. The information

Page 1 (printed 4/1/99)

tree(1) UNIX System V (APT) tree(1)

whether the entry is a directory is discarded.
If neither the -l or -g options is specified, the
-l option is taken for default.
See CAVEAT.

-v variable length names.

-V Type version number.

-x Do not cross mounted file systems.

EXAMPLES
tree -a -c 10
shows the directory structure with all files, names
truncated to maximal to 10 characters.

tree -advp
shows the directory structure with all files, variable
name length, directories at the top of the listing and
shows files beginning with a '.' too.

CAVEAT
The options -d, -l, -s might not be present. A switch
determined at compile time, determines whether these options
are present or not. The overall program size is responsible
if that switch is set or not.

Page 2 (printed 4/1/99)

Frederic Goudal

unread,
Apr 1, 1999, 3:00:00 AM4/1/99
to
Philippe DUFOUR <pdu...@brssp2.be.lucent.com> writes:

> Hi,
>
> Yes, there is a 'tree' command.
>
> I work on Sun SPARCstation-5 on Solaris,
> find the manual output of the "tree" command.
>
> Phil.
>
>
> tree(1) UNIX System V (APT) tree(1)
>
> NAME
> tree - Print the tree structure of a directory
>
> SYNOPSIS
> tree [ -HVac:dfglnpsvx ] [ top ]
>

Surely not a sun man page....maybe it could be interesting to get the
location of the source.

f.g.

--
FiLH photography. A taste of freedom in a conventional world.
Web: http://www.i-france.com/filh
e-mail gou...@enserb.u-bordeaux.fr
FAQ fr.rec.photo : http://www.enserb.u-bordeaux.fr/~goudal/frp/faq.html

gilbertg...@gmail.com

unread,
Jul 10, 2020, 7:31:31 PM7/10/20
to
Em quarta-feira, 31 de março de 1999 05:00:00 UTC-3, m...@me escreveu:
> hello,
>
> anyone knows if there is a 'tree' command for solaris?
> I have one on my Linux box, and I'd like to use it for Solaris also.
> I searched few of the Solaris web pages, but I can't find it.
> thanks,
> me

https://www.opencsw.org/packages/tree/
pkgadd -d http://get.opencsw.org/now
/opt/csw/bin/pkgutil -U
/opt/csw/bin/pkgutil -y -i tree
/usr/sbin/pkgchk -L CSWtree # list files

Nemo

unread,
Jul 11, 2020, 11:23:30 AM7/11/20
to
On 10/07/2020 19:31, gilbertg...@gmail.com wrote:
> Em quarta-feira, 31 de março de 1999 05:00:00 UTC-3, m...@me escreveu:
>> hello,
>>
>> anyone knows if there is a 'tree' command for solaris?
>> I have one on my Linux box, and I'd like to use it for Solaris also.
>> I searched few of the Solaris web pages, but I can't find it.
>> thanks,
>> me

Until now, I had never heard of it. I downloaded the current
distribution from http://mama.indstate.edu/users/ice/tree/ . It builds
without errors (choosing Solaris in the Makefile) and seems to work.

N.

hume.sp...@bofh.ca

unread,
Jul 13, 2020, 8:51:17 AM7/13/20
to
gilbertg...@gmail.com wrote:
> Em quarta-feira, 31 de mar?o de 1999 05:00:00 UTC-3, m...@me escreveu:

Impressive. You replied to a posting over twenty years old.

Better late than never, eh?

--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/

Nemo

unread,
Jul 13, 2020, 4:00:21 PM7/13/20
to
On 13/07/2020 08:51, hume.sp...@bofh.ca wrote:
> gilbertg...@gmail.com wrote:
>> Em quarta-feira, 31 de mar?o de 1999 05:00:00 UTC-3, m...@me escreveu:
>
> Impressive. You replied to a posting over twenty years old.
>
> Better late than never, eh?
>

Well, it seems to have been reposted recently.

Newsgroups: comp.unix.solaris
Date: Fri, 10 Jul 2020 16:31:27 -0700 (PDT)
In-Reply-To: <7dtu34$u...@drn.newsguy.com>#1/1>
Injection-Info: google-groups.googlegroups.com;
posting-host=189.6.36.88; posting-account=a4tmxwkAAAAQubC4s84-4SbGAP6jODHU
NNTP-Posting-Host: 189.6.36.88
Message-ID: <ccaa9a45-8790-410f...@googlegroups.com>
Subject: Re: where to find the 'tree' command for Solaris?
From: gilbertg...@gmail.com
Injection-Date: Fri, 10 Jul 2020 23:31:27 +0000

hume.sp...@bofh.ca

unread,
Jul 16, 2020, 8:43:25 PM7/16/20
to
Nemo <ne...@invalid.invalid> wrote:
> Well, it seems to have been reposted recently.

You listed the headers for gilbertgalvesgga's post. Which is the post
from 2020 replying to the post from 1999.

I'm not sure what you're trying to say.

gilbertg...@gmail.com

unread,
Jul 17, 2020, 7:04:29 AM7/17/20
to
A happy ending was missing. :)
0 new messages