Linux:
# cat /proc/sys/fs/file-max
# cat /proc/sys/fs/file-nr
The last command line will return three numbers; first total allocated file descriptors, second total free allocated file descriptors, and last maximum open file descriptors.
Linux:
# cat /proc/sys/fs/file-max
# cat /proc/sys/fs/file-nr
The last command line will return three numbers; first total allocated file descriptors, second total free allocated file descriptors, and last maximum open file descriptors.