sudo ulimit -n 10480 launchctl limit maxfiles 10480 10480
Et redémarrer le terminal
Ou sinon, juste :
ulimit -n 1000
sans fermer le terminal