一行命令在Bash脚本中终止进程<process_name>:

pgrep <process_name> | xargs kill