Open Files - determining how many files are currently open.
$ cat /proc/sys/fs/file-nr
2030 263 104851
| | \- maximum open file descriptors
| |
| \- total free allocated file descriptors
|
(Total allocated file descriptors since boot)
Note the maximum number can be set or changed.
$ cat /proc/sys/fs/file-max
104851
To change this
$ echo "804854" > /proc/sys/fs/file-max
Note lsof | wc -l will report higher numbers because this includes
open files that are not using file descriptors such as directories,
memory mapped files, and executable text files.