Use pkill -f, which matches the pattern for any part of the command line
pkill -f my_pattern
Related Posts
Turn off monitor using command line
The xset command mentioned in other answers will turn off all the monitors if you have multiple…
How do I reload .bashrc (ubuntu) without logging out and back in?
source ~/.bashrc
