Find and kill processes on Linux
The following example gets those processes of intertest and passes them to be killed:
Example:
sudo ps aux | grep some-thing-to-be-killed | sed 's/\s\+/ /g' | cut -d ' ' -f2 | xargs sudo kill -9
The following example gets those processes of intertest and passes them to be killed:
Example:
sudo ps aux | grep some-thing-to-be-killed | sed 's/\s\+/ /g' | cut -d ' ' -f2 | xargs sudo kill -9
Comments
Post a Comment