pkill -f programnamefor example pkill -f rails kill all processes whose names contains "rails": rails server, rails console, etc.
about -f:
The pattern is normally only matched against the process name. When -f is set, the full command line is used.
To read:
To read: