snippetbashTip
ulimit — Get and set resource limits for user processes. This is a shell builtin hence not shell-agnostic. Mo
Viewed 0 times
resourceulimitcommandandclilimitssetget
Problem
How to use the
ulimit command: Get and set resource limits for user processes. This is a shell builtin hence not shell-agnostic. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-ulimit>.Solution
ulimit — Get and set resource limits for user processes. This is a shell builtin hence not shell-agnostic. More information: <https://www.gnu.org/software/bash/manual/bash.html#index-ulimit>.Get the properties of all the user limits:
ulimit -aGet hard limit for the number of simultaneously opened files:
ulimit -H -nGet soft limit for the number of simultaneously opened files:
ulimit -S -nSet max per-user process limit:
ulimit -u {{30}}Display help (Bash only):
help ulimitCode Snippets
Get the properties of all the user limits
ulimit -aGet hard limit for the number of simultaneously opened files
ulimit -H -nGet soft limit for the number of simultaneously opened files
ulimit -S -nSet max per-user process limit
ulimit -u {{30}}Display help (Bash only)
help ulimitContext
tldr-pages: common/ulimit
Revisions (0)
No revisions yet.