Wednesday 19 October 2016

How to see a running process in Unix


All your processes can be found under /proc and you can also get the number of open files from there. Or use lsof

For Unix :

# ps -aef | grep {process-name} ; pfiles {PID}



For Linux : 

#ps -C {program-name} -o pid= ; ls -l /proc/{PID}/fd

Or simplyuse



#lsof -p

No comments:

Post a Comment