• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

prlimit Command Examples in Linux

by Deepika

The prlimit command is a Linux utility that allows users to view and modify the resource limits for a given process. On a Linux system, various resources such as memory, CPU time, number of files, and open file descriptors are allocated to each process. These limits are in place to prevent a single process from consuming too many system resources and affecting the overall performance and stability of the system.

With prlimit, you can get or set the soft and hard limits for one or more resources associated with a specific process ID. The “soft limit” is the current limit of the resource that the process is allowed to use, while the “hard limit” is the maximum limit that the process can be raised to.

prlimit Command Examples

1. Display limit values for all current resources for the running parent process:

# prlimit

2. Display limit values for all current resources of a specified process:

# prlimit --pid pid number

3. Run a command with a custom number of open files limit:

# prlimit --nofile=10 command

Filed Under: Linux

Some more articles you might also be interested in …

  1. Understanding the /etc/exports File
  2. dget: command not found
  3. a2query: command not found
  4. How systemd-tmpfiles cleans up /tmp/ or /var/tmp (replacement of tmpwatch) in CentOS / RHEL 7
  5. How to restrict ssh logins by user and client address on CentOS/RHEL
  6. rfkill: command not found
  7. virsh Command Examples in Linux
  8. How To Create a Partition Using “parted” Command
  9. Interview Questions : Linux Package Manager (RPM)
  10. blkdiscard Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • “aws sqs” Command Examples
  • “aws ses” Command Examples
  • “aws secretsmanager” Command Examples
  • “aws s3api” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright