Bash

  • To get pids by name, use pgrep instead of ps | grep

    • E.g. pgrep -i expressvpn

    • It will exclude your own grep process.

Last updated