/proc filesystem identified by its PID. The following are the important files in /proc directory:  pid/cmdlinecontains the command that was used to start the process (using null characters to separate the arguments)./proc/pid/cwdcontains a link to the current working directory of the process./proc/pid/environcontains a list of the environment variables that the process has available./proc/pid/execontains a link to the program that is running in the process./proc/pid/fd/is a directory containing a link to each of the files that the process has open./proc/pid/memcontains the memory contents of the process./proc/pid/statcontains process status information./proc/pid/statmcontains process memory usage information./proc/pid/lwpcontains the threads running in the process with the process id
Commands :
ls -l /proc/pid/fd | wc -l
ls -l /proc/pid/lwp | wc -l
No comments:
Post a Comment