ps -Tp `pidof java`
top -H -p `pidof java`
pstree -p `pidof java`
for pid in $(pgrep java); do ls /proc/$pid/fd | wc -l; done
A colleague was tinkering with grep and, thanks to him, I discovered a bit more about the trusty little utility. I had not really explored ...