ulimit

Get and set user limits. More information: <https://manned.org/ulimit>.

Install

All systems
curl cmd.cat/ulimit.sh
Debian Debian
apt-get install bash
Ubuntu
apt-get install bash
Alpine
apk add bash
Arch Arch Linux
pacman -S bash
image/svg+xml Kali Linux
apt-get install bash
CentOS
yum install bash
Fedora
dnf install bash
Windows (WSL2)
sudo apt-get update sudo apt-get install bash
OS X
brew install bash
Raspbian
apt-get install bash
Docker
docker run cmd.cat/ulimit ulimit powered by Commando

Get and set user limits. More information: <https://manned.org/ulimit>.

  • Get the properties of all the user limits:
    ulimit -a
  • Get hard limit for the number of simultaneously opened files:
    ulimit -H -n
  • Get soft limit for the number of simultaneously opened files:
    ulimit -S -n
  • Set max per-user process limit:
    ulimit -u 30

© tl;dr; authors and contributors