LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

prlimit

Get or set process resource limits

TLDR

Display all limits for current process
$ prlimit
copy
Display limits for specific process
$ prlimit -p [pid]
copy
Run command with custom file limit
$ prlimit -n [1024] [command]
copy

SYNOPSIS

prlimit [-p pid] [limit=value] [command]

DESCRIPTION

prlimit gets or sets process resource limits. It can query limits for a running process or run a new command with specified limits. Limits can be set as soft:hard or just a single value for both.The tool provides finer control than ulimit, allowing modification of another process's limits and setting both soft and hard limits simultaneously.

PARAMETERS

-p, --pid _pid_

Process ID to query or modify
-n, --nofile _limit_
Maximum number of open files
-u, --nproc _limit_
Maximum number of processes
-s, --stack _limit_
Maximum stack size
-v, --as _limit_
Maximum virtual memory size
-m, --rss _limit_
Maximum resident set size

INSTALL

sudo apt install util-linux
copy
sudo dnf install util-linux
copy
sudo pacman -S util-linux
copy
sudo apk add util-linux-misc
copy
sudo zypper install util-linux
copy
brew install util-linux
copy
nix profile install nixpkgs#util-linux
copy

CAVEATS

Modifying another process requires appropriate privileges. Hard limits can only be raised by root. Some limits may not be adjustable on all systems.

HISTORY

prlimit is part of util-linux, providing a modern interface to the prlimit system call. It offers more flexibility than the shell built-in ulimit command.

SEE ALSO

ulimit(1), getrlimit(2)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid