1833059 Members
2438 Online
110049 Solutions
New Discussion

Tree

 
SOLVED
Go to solution
Jamie McColl
Occasional Advisor

Tree

I have been asked to look into the unix command `tree`. But there is no entry in man page and nothing I can see in my manuals. Does it exist and if it does where can I get some info on it?
Be selective, be objective, be an asset to the collective
7 REPLIES 7
melvyn burnard
Honored Contributor

Re: Tree

Are you not possibly referring to the 'tee' command?
In what context are you looking to use the command you are investigating? And the OS version may be relevant here.
Could you provide more details/information?
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Neil Haslum
Occasional Contributor

Re: Tree

Never heard of it, could it be "tee"?
Albert E. Whale, CISSP
Honored Contributor
Solution

Re: Tree

Jamie,

Tree is a valid Linux command.

ALthough this command does not exist on HP-UX, it does exist in Linux.

I have included the man page for your review.

Hope this helps.
Sr. Systems Consultant @ ABS Computer Technology, Inc. http://www.abs-comptech.com/aewhale.html & http://www.ancegroup.com
Benoit MARC
Occasional Advisor

Re: Tree

Hi

I don't know no such a command on Unix.

A 'tree'-like command could be:

du | perl -pe 's#^(.*/)##;$x=$1;$cnt=($x=~y#/#/#);s/^/"t" x $cnt/e;'

Only the graphical chars are missing...

regards,
Derek Davey
New Member

Re: Tree

Jamie,

I assume you mean a program which displays/prints the directory tree structure.

There appears to be no tree command as standard with HP-UX but if you go to the porting and archive centre at http://hpux.connect.org.uk and search for tree then there are various utilities ported which may be of use to you.

Hope this helps
Jamie McColl
Occasional Advisor

Re: Tree

I am going to explore the Linux version of the command. Thanks for your help guys.
Be selective, be objective, be an asset to the collective
Albert E. Whale, CISSP
Honored Contributor

Re: Tree

You are certainly welcome!
Sr. Systems Consultant @ ABS Computer Technology, Inc. http://www.abs-comptech.com/aewhale.html & http://www.ancegroup.com