Forrest logo
back to context overview

pgrep

List of commands for pgrep:

  • pgrep:ai:31727 Check if an app is running in Linux
    $ pgrep -c ${app_name}
    try on your machine
    explain this command
  • pgrep:ai:da8e3 Display the process ID numbers for the secure shell daemon (sshd), and then redirect the results to a file named sshd.pid.
    $ pgrep -x sshd > sshd.pid
    try on your machine
    explain this command
  • pgrep:tldr:38058 pgrep: Search for processes run by a specific user.
    $ pgrep --euid root ${process_name}
    try on your machine
    explain this command
  • pgrep:tldr:d9fe4 pgrep: Return PIDs of any running processes with a matching command string.
    $ pgrep ${process_name}
    try on your machine
    explain this command
  • pgrep:tldr:dd734 pgrep: Search for processes including their command-line options.
    $ pgrep --full "${process_name} ${parameter}"
    try on your machine
    explain this command
back to context overview