Like to kill JMeter services.
Ps-efww|grep jmeter |grep-v grep|cut-c 9-15|xargs kill-9
Description: Pipe character "|" Used to separate two commands, the output of the command on the left side of the pipe is entered as the command to the right of the pipe character.
"Ps-efww" is a command to view all processes. The retrieved process is then used as input to the next command "grep", and note that when you end other programs, replace the VIM in the above command with the other program name.
Grep-v grep removes the process that contains the keyword "grep" in the listed process.
"Cut-c 9-15" is the 9th character of the Intercept input line to the 15th character, which happens to be the process number PID.
The Xargs command in "Xargs kill-9" is used to take the output (PID) of the previous command as an argument to the "kill-9" command and execute the command.
"Kill-9" will kill the specified process, thus successfully clearing the process of the same name.