ulimit -n 4096

Category: Administration

ulimit -n 4096

Raise the soft open-file limit

The -n limit controls how many file descriptors one shell session may hold, and this raises the soft limit to 4096. The soft limit can be raised only up to the hard limit, which needs root to increase. Set it in ~/.bashrc or a systemd unit for persistence.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.