kill process by name ubuntu linux code example
Example 1: kill port ubuntu
sudo kill -9 `sudo lsof -t -i:9001`
Example 2: ubuntu kill process
pidof slack
9734 9718 9716 9708 9622 9619
sudo kill -9 process_id
pidof apt
9734 9718 9716 9708 9622 9619
sudo kill -9 9734 9718 9716 9708 9622 9619
Example 3: kill process ubuntu
sudo kill -9 process_id
Example 4: how to kill process in linux
kill <processID>