Simplicity is a form of art...

Linux protip: environment for a process
by Sven Vermeulen, post on Tue 07 January 2014

Just a quick pro-tip: if you need to know the environment variables for a process, you can see them in that process' /proc/${PID}/environ file. The file however shows the environment variables on one line, with a null character as separator. With a simple sed you can show it …