prlimit

Get or set process resource soft and hard limits. Given a process ID and one or more resources, prlimit tries to retrieve and/or modify the limits. More information: <https://manned.org/prlimit>.

Install

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

Get or set process resource soft and hard limits. Given a process ID and one or more resources, prlimit tries to retrieve and/or modify the limits. More information: <https://manned.org/prlimit>.

  • Display limit values for all current resources for the running parent process:
    prlimit
  • Display limit values for all current resources of a specified process:
    prlimit --pid pid number
  • Run a command with a custom number of open files limit:
    prlimit --nofile=10 command

© tl;dr; authors and contributors