xxxxxxxxxx
ps -ef| grep <name or substring of the program> #Find the all program threads
kill - 9 <PID> # Kill it immediately (Second column from above command)
xxxxxxxxxx
# Find the PID of the process
ps aux | grep <process_name>
# Use the kill command to terminate the process
kill <PID>
xxxxxxxxxx
# find PID and kill the cmd
ps aux | grep <command_name substring>
kill -9 <PID>
# you can then kill commands:
# related to a user
pkill -u <user_name>
# related to a user + command
ps aux | grep '<command_name e.g. python>' | grep -v grep | awk '$1 == "<user_name>" {print $2}' | xargs -r kill -9
# related to a directory/file
lsof +D <path_to_dir> | awk 'NR>1 {print $2}' | sort -u | xargs -I {} kill -9 {}
xxxxxxxxxx
ps ux # list the running Process with PID
kill xxxx # hear xxxx is the process id