Get hard limit for the number of simultaneously opened files

ulimit

ulimit -H -n

click the source code to copy install ulimit on any operating system with command-not-found.com