🖥️prctl

➡️This is a command-line reference manual for commands and command combinations that you don’t use often enough to remember it. This cheatsheet explains the prctl command with important options and switches using examples.

▁ ▂ ▃ ▄ ꧁ 🔴☠ COMMANDLINE-KUNGFU WITH CHEATSHEETS ☠🔴꧂▅ ▃ ▂ ▁

#  ██████╗ ██████╗  ██████╗████████╗██╗     
#  ██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██║     
#  ██████╔╝██████╔╝██║        ██║   ██║     
#  ██╔═══╝ ██╔══██╗██║        ██║   ██║     
#  ██║     ██║  ██║╚██████╗   ██║   ███████╗
#  ╚═╝     ╚═╝  ╚═╝ ╚═════╝   ╚═╝   ╚══════╝

#  prctl
#  Get or set the resource controls of running processes,
#  Tasks, and projects (Solaris)

# Examine process limits and permissions:
prctl ${PID}

# Examine process limits and permissions in machine parseable format:
prctl -P ${PID}

# Get specific limit for a running process:
prctl -n process.max-file-descriptor ${PID}
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

  █║▌│║█║▌★ KALI ★ PARROT ★ DEBIAN 🔴 PENTESTING ★ HACKING ★ █║▌│║█║▌

              ██╗ ██╗ ██████╗  ██████╗ ██╗  ██╗███████╗██████╗
             ████████╗██╔══██╗██╔═══██╗╚██╗██╔╝██╔════╝██╔══██╗
             ╚██╔═██╔╝██║  ██║██║   ██║ ╚███╔╝ █████╗  ██║  ██║
             ████████╗██║  ██║██║   ██║ ██╔██╗ ██╔══╝  ██║  ██║
             ╚██╔═██╔╝██████╔╝╚██████╔╝██╔╝ ██╗███████╗██████╔╝
              ╚═╝ ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝

               █║▌│║█║▌ WITH COMMANDLINE-KUNGFU POWER █║▌│║█║▌

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░