[질문]PID번호 말고 구동프로그램 이름으로 죽이는 명령어는 없나요?

studer의 이미지

kill 명령어의 PID 번호로 프로그램을 죽이는 거 말고 구동 데몬이나 프로그램 이름으로 죽이는 방법은 없나요?

예를 들어서

ps aux | grep mplayer

쉘에서 치고 나서 나오는 pid 번호를 가지고 죽이는 거 말고

'mplayer'를 가지고 죽이는 명령어는 혹시 없는지 알려주세요.

LinuxMC의 이미지

killall mplayer

무제? 무죄!

무제? 무죄!

ymir의 이미지

pkill mplayer

되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』

되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』

마잇의 이미지

pgrep, pkill
--
마잇


--
마잇