Sep 15, 2017

sudo: ulimit: command not found

Limits are process-specific. ulimit is a shell bult-in and can only change limits for this shell and the processes started from this shell. sudo ulimit doesn't make any sense.