ULIMIT(1)

NAME

ulimit - get or set process resource limits.

SYNOPSIS

ulimit [-HS] [-cdfnstv] [limit]
ulimit [-HS] -a

DESCRIPTION

ulimit is a POSIX regular builtin provided by Rush. Without a limit operand, it prints the selected resource limit. A numeric operand sets the limit; unlimited removes it. When neither -H nor -S is given, setting a limit updates both the hard and soft limits.

OPTIONS

-H
Select the hard limit.
-S
Select the soft limit. This is the default when printing.
-a
Print all supported resource limits.
-c
Core file size, in 512-byte blocks.
-d
Data segment size, in KiB.
-f
File size, in 512-byte blocks. This is the default resource.
-n
Number of open files.
-s
Stack size, in KiB.
-t
CPU time, in seconds.
-v
Address-space size, in KiB.

EXIT STATUS

See the POSIX definition for command-specific status rules. Usage errors generally return a non-zero status.

SEE ALSO

rush-builtins(7), POSIX Shell Command Language.