I need to troubleshoot some problems related to environment variables on a Unix system.
On Windows, I can use a tool such as ProcessExplorer to select particular a process and view values of each environment variable.
How can I accomplish the same thing on Unix? echoing
and env
cmd just show values at present time, but I want to view what values the running process is using currently.
Best Answer
If you want to have pid(s) of a given running executable you can, among a number of other possibilities, use
pidof
:EDIT:
I totally quote Dennis Williamson and Teddy comments to achieve a more readable output. My solution is the following: