see detail of pid

C++
ps -Flww -p THE_PID
Source

Also in C++: