command kill all processes with name code example Example 1: how to kill process by command name pkill firefox Example 2: kill all process killall node -9