Terminate process

Report a typo

You need to write a function that takes the process id as a first argument and kills the processes with the SIGTERM signal.

Tip: As you remember from the topic, you don't need to specify the SIGTERM signal explicitly as the argument to the kill command.

Sample Input 1:

Sample Output 1:

OK
Write a program in Shell
#!/usr/bin/env bash

solve() {
# add your solution here

}
___

Create a free account to access the full topic