3 examples for pgrep

{{ score }}
  # Find the pids of all python processes on your system.
pgrep python
        
{{ score }}
  # Find the pids of processes with 'test.py' as an argument, like 'python test.py'
pgrep -f test.py
        
{{ score }}
  # find out how many R sessions you have open
pgrep R | wc -l