NOTE

ulimit

Ulimit sets process resource limits within the current shell. These notes distinguish soft and hard limits and record related commands.

Operating Systems / LinuxCreated Updated 1 min readhistorical

This is a historical learning note and may contain outdated or incomplete understanding.

You can set resources for all processes of the current user in the current shell.

ulimit has soft limits and hard limits:

  • Soft limit: any process can modify the soft limit, but the soft limit cannot exceed the hard limit.
  • Hard limit: ordinary processes can lower the hard limit; only a root process can raise the hard limit.

Discussion

Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub