Linux – Killing all instances of Chrome on the command-line

bashgoogle-chromelinux

In some cases killing a single tab/process doesn't do it and I need to close Chrome entirely. Since Chrome has multiple processes, how can I close all of them at once?

I know that…

pgrep chrome returns all the pids. What is a trick that would allow me to close all of them by feeding them to another command or merging them to a CSV file or something?

Best Answer

Try using pkill(1).

pkill chrome