When try to get the content of any /proc/PID/environ file in more readable format, you can:
1 | /proc/[pid]/environ |
A simple way is to apply xargs -0 -L1 -a
on it:
-0
- read null-delimited lines,-L1
- read one line per execution of command-a
- file read lines from file
1 | ps -aef |