Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux:gentoo:shell:number_of_opened_files [2018/03/15 08:51]
waldauf
linux:gentoo:shell:number_of_opened_files [2018/03/15 08:53] (current)
waldauf
Line 6: Line 6:
  
 \\ \\
-For each PID of user //docker//:<code>+For each docker's PID of user //root//:<code>
 cc=0; for ii in $( ps aux | grep docker | grep -v grep | awk '{ print $2 }' ); do nn=$(lsof -p $ii | wc -l); cc=$(( cc + nn )); done; echo "Celkem: $cc" cc=0; for ii in $( ps aux | grep docker | grep -v grep | awk '{ print $2 }' ); do nn=$(lsof -p $ii | wc -l); cc=$(( cc + nn )); done; echo "Celkem: $cc"
 </code> </code>
Navigation
Print/export
Toolbox