1837942 Members
2219 Online
110124 Solutions
New Discussion

Re: output of ps

 
Subbu Cherukuwada
Occasional Contributor

output of ps

Can we list all the arguments passed to a command in the output of ps -ef?
By default this output is truncated.
As per the man page of ps, the output is a subset of information stored by kernel.
Is this a tunable parameter?
4 REPLIES 4
federico_3
Honored Contributor

Re: output of ps

Wodisch
Honored Contributor

Re: output of ps

Hello Subbu,

the answer is "no", for the output of "ps" is cut off after
about 60 characters - you would have to write your own
ps program, to show the whole command-line for the
running processes (and I am not so confidend if the
data structure is restricted, too).
HTH,
Wodisch
Jim Turner
HPE Pro

Re: output of ps

Hi Subbu,

I believe the number of chars for the proc name (and args) is a kernel data struct limitation. The ps cmd is showing all it has available to show. I am unaware (but always willing to learn) of any way to get ps to cough up any more of the proc name and args than it already does.

All the best,
Jim
Michael Tully
Honored Contributor

Re: output of ps

Hi,

In the 'ps' man page there is a statement
in regards to the kernel and I quote:

"Only a subset of the command line is saved
by the kernel; as much of the command line
will be displayed as is available.

This is not a tunable parameter in the
kernel.

The output of ps -ef is truncated
and does not display anything after
the 60th character. You can always use
some of the other options within ps
to get some further information that
is not displayed with ps -ef.
ps -ef displays all processes, but not
all information about that process.

HTH
Michael
Anyone for a Mutiny ?