title: How to view the command line and environment variables for a process in the linux command line
body: <p>I'd like to be able to see both the command line that launch a given process (by PID) and the its environment variables.</p>
  
  <p>Preferably from a command line but a script would be acceptable failing that.</p>
  
  <p>This would be on Centos 5.3 but the more widely it works the better.</p>