Difference between revisions of "OpenFiles"

From pressy's brainbackup
Jump to: navigation, search
(Created page with "== Open Files == Ever wondered how many open files which process has running solaris? <code> # ls -d /proc/*/fd/* | sed -e's|/proc/|open files for PID: |' -e's|/fd.*$||' |...")
 
(Open Files)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
Ever wondered how many open files which process has running solaris?
 
Ever wondered how many open files which process has running solaris?
  
<code>
+
<pre>
# ls -d /proc/*/fd/* | sed  -e's|/proc/|open files for PID: |'  -e's|/fd.*$||' | uniq -c | sort -n
+
root@server# ls -d /proc/*/fd/* | sed  -e's|/proc/|open files for PID: |'  -e's|/fd.*$||' | uniq -c | sort -n
</code>
+
</pre>

Latest revision as of 14:30, 18 December 2015

Open Files

Ever wondered how many open files which process has running solaris?

root@server# ls -d /proc/*/fd/* | sed  -e's|/proc/|open files for PID: |'  -e's|/fd.*$||' | uniq -c | sort -n