Operating System - HP-UX
1833329 Members
2894 Online
110051 Solutions
New Discussion

EXTREME question: max dirdepth? longest cmd line? longest filename?

 
SOLVED
Go to solution
Steve Post
Trusted Contributor

EXTREME question: max dirdepth? longest cmd line? longest filename?

I bet all these questions are in the same spot. I just can't find it because I can't describe it correctly.

Is there a limit to the depth of directories?
I.E.
If /a/b/c/d/e is ok but /a/b/c/d/e/f is too deep for hpux, where is this found?

Is there a limit to the length of a command line?

Is there a limit to the number or arguments in a command line?

What is the longest filename allowed?

All of these questions are in hp somewhere right? I bet they are all in one spot too.

Oh I'm not planning on pushing the envelope. It's just that an opensource application that hooks to apache seems to have /loads/and/loads/of/long/paths/stuck/in/it.

And I always have to worry about people "insisting" that their pdf file have a name like the symbol for prince, a color, shape, or the sound of one hand clapping.
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor
Solution

Re: EXTREME question: max dirdepth? longest cmd line? longest filename?

Hi Steve:

In general, 'getconf()' will divulge configuration limits.

Another useful place to look is"

'/usr/include/limits.h'.

Regards!

...JRF...
OldSchool
Honored Contributor

Re: EXTREME question: max dirdepth? longest cmd line? longest filename?

Steve,

Have a look at the following:

man 5 limits
man 2 pathconf
man 2 sysconf

and also limits.h.

HTH

Scott