As we know the kill command in linux permits to kill a process using its id. kill -9 tries to kill your process even harder. But what if I have many similar processes? We can use the cut function that I recently saw here as shown below:
What it does is: searches the list of processes for lines containing bootstrap.py, then extracts the process id from each line and kills the process.
No comments:
Post a Comment