Get and set resource limits for user processes. It is a shell builtin hence not shell-agnostic. More information: https://www.gnu.org/software/bash/manual/bash.html#index-ulimit.
ulimit -a
ulimit -H -n
ulimit -S -n
ulimit -u 30
help ulimit