Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/85063/virtual/www/domains/waldauf.org/lib/plugins/color/syntax.php:1) in /data/web/virtuals/85063/virtual/www/domains/waldauf.org/inc/actions.php on line 180
linux:gentoo:shell:number_of_opened_files - WiKi

Number of opened files

Permit number of opened files:

ulimit -n

For each docker's PID of user root:

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"

For user:

lsof -u root | wc -l