List the Environment Variables of a Process =========================================== Author: Momchil Ivanov Date : 2013.12.07 Introduction ------------ This articles describes how to list the environment variables of a running process. Method 1 -------- To list the environment variables of the running process with process id specified as , execute: $ ps -eww This method works on the operating systems GNU/Linux and FreeBSD. Method 2 -------- Execute: $ cat /proc//environ For a human readable format execute: $ xargs --null --max-args=1 echo < /proc//environ This method works on the operating system GNU/Linux. Additional information ---------------------- For obtaining additional information on a running check the program procenv [1,2]. References ---------- 1: http://ifdeflinux.blogspot.de/2012/10/procenv-and-process-environment.html 2: https://launchpad.net/procenv