Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

What's the FreeBSD (or Linux) equivalent to the 'pargs' command, available in Solaris? Many times I want to know what are the environment variables for a given process space, with no help from these systems.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Substitute the PID where "12345" is shown:

tr '\0' '\n' < /proc/12345/environ


ps eww -p 12345
share|improve this answer
Thank you! That helped me a lot. –  anderson Sep 18 '10 at 2:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.