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